]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/webserver.c
I was today years old when I learned that the "thundering herd" problem no longer...
[citadel.git] / webcit-ng / webserver.c
index 771fecad4b49ce3d2be71d87c5f0f0b1136b8f8e..d3f5aeb396fa46640d673de88365d99a04123a52 100644 (file)
@@ -58,6 +58,8 @@ void worker_entry(int *pointer_to_master_socket) {
 
        while (1) {
                // Each worker thread blocks on accept() while waiting for something to do.
+               // We don't have to worry about the "thundering herd" problem on modern kernels; for an explanation see
+               // https://stackoverflow.com/questions/2213779/does-the-thundering-herd-problem-exist-on-linux-anymore
                memset(&ch, 0, sizeof ch);
                ch.sock = -1;
                errno = EAGAIN;