--- lighttpd-1.4.19.orig/src/connections.c	2008-02-28 00:41:35.000000000 +0100
+++ lighttpd-1.4.19/src/connections.c	2009-04-17 12:01:55.000000000 +0200
@@ -1187,7 +1187,7 @@
 		/* FIXME: revents = 0x19 still means that we should read from the queue */
 		if (revents & FDEVENT_HUP) {
 			if (con->state == CON_STATE_CLOSE) {
-				con->close_timeout_ts = 0;
+				con->close_timeout_ts = LONG_MIN;
 			} else {
 				/* sigio reports the wrong event here
 				 *
@@ -1256,7 +1256,7 @@
 		} else {
 			/* nothing to read */
 
-			con->close_timeout_ts = 0;
+			con->close_timeout_ts = LONG_MIN;
 		}
 	}
 
@@ -1608,10 +1608,10 @@
 				} else {
 					/* nothing to read */
 
-					con->close_timeout_ts = 0;
+					con->close_timeout_ts = LONG_MIN;
 				}
 			} else {
-				con->close_timeout_ts = 0;
+				con->close_timeout_ts = LONG_MIN;
 			}
 
 			if (srv->cur_ts - con->close_timeout_ts > 1) {
