From b84dbd0b631f508e71d0b8d37b653c43c745d63d Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 6 Nov 2023 12:02:25 +0100 Subject: Add nDPId / nDPIsrvd command line option to use poll() on Linux instead of the default epoll(). Signed-off-by: Toni Uhlig --- nDPId-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nDPId-test.c') 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"); -- cgit v1.2.3