From 8a4763117e478b14b1d3c2b0c0bad03e70110689 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Wed, 31 Aug 2022 20:35:07 +0200 Subject: [PATCH] fix incorrect poll timeout --- tunnel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tunnel.c b/tunnel.c index 00d1cc5..527c4b3 100644 --- a/tunnel.c +++ b/tunnel.c @@ -1102,7 +1102,7 @@ void *handle(void *rq_data) timeout.tv_usec = PROCESS_TIMEOUT; pfd.fd = client->sock; pfd.events = POLLIN; - status = poll(&pfd, 1, PROCESS_TIMEOUT); + status = poll(&pfd, 1, PROCESS_TIMEOUT/ 1000); switch (status) { case -1: