diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2023-11-06 12:02:25 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2023-11-06 12:11:26 +0100 |
commit | b84dbd0b631f508e71d0b8d37b653c43c745d63d (patch) | |
tree | 986a2fac5feeaae71e2c2bd4e771e31a7c966de6 /nDPId-test.c | |
parent | b6de3555bf2f18eb6ba52c88a506027934f50031 (diff) |
Add nDPId / nDPIsrvd command line option to use poll() on Linux instead of the default epoll().add/event-io-abstraction
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'nDPId-test.c')
-rw-r--r-- | nDPId-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nDPId-test.c b/nDPId-test.c index 170bf4c2e..48c0e2b70 100644 --- a/nDPId-test.c +++ b/nDPId-test.c @@ -311,7 +311,7 @@ static void * nDPIsrvd_mainloop_thread(void * const arg) #ifdef ENABLE_EPOLL if (nio_use_epoll(&io, 32) != NIO_SUCCESS) #else - if (nio_use_poll(&io, 32) != NIO_SUCCESS) + if (nio_use_poll(&io, nDPIsrvd_MAX_REMOTE_DESCRIPTORS) != NIO_SUCCESS) #endif { logger(1, "%s", "Error creating nDPIsrvd poll/epoll event I/O"); |