diff --git a/src/proxy.c b/src/proxy.c index c34498a..3f2ae50 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -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,