diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-10-27 22:11:24 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-10-27 22:45:01 +0300 |
commit | f2cb0ef073b5e0ae50200aec3f69822b6663e3d3 (patch) | |
tree | f69ba3d9ae99e57b53a978c2850e6631b2e5330d | |
parent | 9224b3e326ee3631901bd97e1b1f62c27c08c169 (diff) | |
download | libmicrohttpd-f2cb0ef073b5e0ae50200aec3f69822b6663e3d3.tar.gz libmicrohttpd-f2cb0ef073b5e0ae50200aec3f69822b6663e3d3.zip |
epoll mode: use level trigger for ITC.
Level trigger is better: MHD need to always react to high ITC level.
-rw-r--r-- | src/microhttpd/daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index abf2a1dc..15d58e55 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -4610,7 +4610,7 @@ setup_epoll_to_listen (struct MHD_Daemon *daemon) | |||
4610 | if ( (MHD_ITC_IS_VALID_(daemon->itc)) && | 4610 | if ( (MHD_ITC_IS_VALID_(daemon->itc)) && |
4611 | (MHD_USE_SUSPEND_RESUME == (daemon->options & MHD_USE_SUSPEND_RESUME)) ) | 4611 | (MHD_USE_SUSPEND_RESUME == (daemon->options & MHD_USE_SUSPEND_RESUME)) ) |
4612 | { | 4612 | { |
4613 | event.events = EPOLLIN | EPOLLET; | 4613 | event.events = EPOLLIN; |
4614 | event.data.ptr = NULL; | 4614 | event.data.ptr = NULL; |
4615 | event.data.fd = MHD_itc_r_fd_ (daemon->itc); | 4615 | event.data.fd = MHD_itc_r_fd_ (daemon->itc); |
4616 | if (0 != epoll_ctl (daemon->epoll_fd, | 4616 | if (0 != epoll_ctl (daemon->epoll_fd, |