]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
all TCP sockets are non-blocking
authorAlan T. DeKok <aland@freeradius.org>
Thu, 9 Feb 2023 21:10:04 +0000 (16:10 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 9 Feb 2023 21:10:04 +0000 (16:10 -0500)
src/lib/io/master.c

index 6dbd5685e3ffba5b0209f0eff069f48f1c1ea658..766d07cf852849305c26026e00ecbb5761c3d562 100644 (file)
@@ -1246,6 +1246,11 @@ redo:
                        return 0;
                }
 
+               /*
+                *      All sockets are non-blocking.
+                */
+               (void) fr_nonblock(accept_fd);
+
 #ifdef STATIC_ANALYZER
                saremote.ss_family = AF_INET; /* static analyzer doesn't know that accept() initializes this */
 #endif