From ccf5302f066ae6637516a19e5a12e2b94c42b1e9 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 23 Jan 2020 17:38:08 +0100 Subject: [PATCH] Try to be less aggressive --- src/proxy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,