Commit bb499bd7 authored by Matt McCutchen's avatar Matt McCutchen Committed by Wayne Davison

Handle simultaneous arrival of multiple connections.

parent 416cef36
......@@ -578,7 +578,7 @@ void start_accept_loop(int port, int (*fn)(int, int))
fds = deffds;
#endif
if (select(maxfd + 1, &fds, NULL, NULL, NULL) != 1)
if (select(maxfd + 1, &fds, NULL, NULL, NULL) < 1)
continue;
for (i = 0, fd = -1; sp[i] >= 0; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment