summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/reqs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/reqs.c b/src/reqs.c
index cea4249..0b36238 100644
--- a/src/reqs.c
+++ b/src/reqs.c
@@ -1,4 +1,4 @@
-/* $Id: reqs.c,v 1.11 2001-01-15 17:11:57 rjkaes Exp $
+/* $Id: reqs.c,v 1.12 2001-05-23 17:58:19 rjkaes Exp $
*
* This is where all the work in tinyproxy is actually done. Incoming
* connections have a new thread created for them. The thread then
@@ -519,8 +519,9 @@ static void relay_connection(struct conn_s *connptr)
log(LOG_INFO, "Idle Timeout (before select) %g > %u", tdiff, config.idletimeout);
return;
}
-
+
ret = select(maxfd + 1, &rset, &wset, NULL, &tv);
+
if (ret == 0) {
tdiff = difftime(time(NULL), last_access);
if (tdiff > config.idletimeout) {