fix really pathological case where io_timeouted would never

start over from the beginning because always new accept()ed
    connections came in and got newer, higher descriptors since the last
    io_timeouted loop.  (Dirk Engling)
master
leitner 18 years ago
parent fded0f3a22
commit 7b52bfc982

@ -1,4 +1,8 @@
0.26: 0.26:
fix really pathological case where io_timeouted would never
start over from the beginning because always new accept()ed
connections came in and got newer, higher descriptors since the last
io_timeouted loop. (Dirk Engling)
0.25: 0.25:
array_allocate no longer truncates the array array_allocate no longer truncates the array

@ -14,5 +14,8 @@ int64 io_timeouted() {
if (e->inuse && e->timeout.sec.x && taia_less(&e->timeout,&now)) if (e->inuse && e->timeout.sec.x && taia_less(&e->timeout,&now))
return ptr; return ptr;
} }
ptr=0; /* this is for really pathological cases, where more
connections come in all the time and so the timeout
handling does not trigger initially */
return -1; return -1;
} }

Loading…
Cancel
Save