From 1b88982d1956a42ead8b47390bcb3906834c5a07 Mon Sep 17 00:00:00 2001 From: leitner Date: Fri, 26 Jan 2007 14:16:14 +0000 Subject: [PATCH] off-by-one --- io/io_timeouted.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/io_timeouted.c b/io/io_timeouted.c index 8ba8bf8..08732a1 100644 --- a/io/io_timeouted.c +++ b/io/io_timeouted.c @@ -14,7 +14,7 @@ int64 io_timeouted() { if (e->inuse && e->timeout.sec.x && taia_less(&e->timeout,&now)) return ptr; } - ptr=0; /* this is for really pathological cases, where more + ptr=-1; /* 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;