Try to be less aggressive

This commit is contained in:
Quentin 2020-01-23 17:38:08 +01:00
parent 77301e3496
commit ccf5302f06

View file

@ -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,