From 0f95c7d1056cab5bd8c6334cf601349ac4631457 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Thu, 29 Oct 2026 00:53:50 +0100 Subject: Revert last wake-up experiment. Having each udp worker wake up once a second to check if the tracker stops is wasteful --- ot_socket.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'ot_socket.c') diff --git a/ot_socket.c b/ot_socket.c index c73738c..158459f 100644 --- a/ot_socket.c +++ b/ot_socket.c @@ -9,7 +9,6 @@ #include #include #include -#include #include /* Opentracker */ @@ -49,12 +48,6 @@ int socket_set_blocking(int s, int blocking) { return fcntl(s, F_SETFL, blocking ? (flags & ~O_NONBLOCK) : (flags | O_NONBLOCK)); } -int socket_set_timeout(int s, int seconds) { - struct timeval patience = {seconds, 0}; - - return setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, &patience, sizeof(patience)); -} - static int set_nonblocking(int s) { return socket_set_blocking(s, 0); } /* Close without letting the failure we are about to report be overwritten */ -- cgit v1.3