Try to be less aggressive
This commit is contained in:
parent
77301e3496
commit
ccf5302f06
1 changed files with 3 additions and 3 deletions
|
@ -214,7 +214,7 @@ void algo_main_init(struct evt_core_ctx* evt, struct algo_params* ap) {
|
|||
|
||||
struct evt_core_cat tcp_read = {
|
||||
.name = "tcp-read",
|
||||
.flags = EPOLLIN | EPOLLET | EPOLLRDHUP,
|
||||
.flags = EPOLLIN | EPOLLET | EPOLLHUP,
|
||||
.app_ctx = ctx,
|
||||
.free_app_ctx = algo_main_destroy,
|
||||
.cb = main_on_tcp_read,
|
||||
|
@ -225,7 +225,7 @@ void algo_main_init(struct evt_core_ctx* evt, struct algo_params* ap) {
|
|||
|
||||
struct evt_core_cat udp_read = {
|
||||
.name = "udp-read",
|
||||
.flags = EPOLLIN | EPOLLET | EPOLLRDHUP,
|
||||
.flags = EPOLLIN | EPOLLET,
|
||||
.app_ctx = ctx,
|
||||
.free_app_ctx = algo_main_destroy,
|
||||
.cb = main_on_udp_read,
|
||||
|
@ -236,7 +236,7 @@ void algo_main_init(struct evt_core_ctx* evt, struct algo_params* ap) {
|
|||
|
||||
struct evt_core_cat tcp_write = {
|
||||
.name = "tcp-write",
|
||||
.flags = EPOLLOUT | EPOLLET | EPOLLRDHUP,
|
||||
.flags = EPOLLOUT | EPOLLET | EPOLLHUP,
|
||||
.app_ctx = ctx,
|
||||
.free_app_ctx = algo_main_destroy,
|
||||
.cb = main_on_tcp_write,
|
||||
|
|
Loading…
Reference in a new issue