Project

General

Profile

Bug #1964 » connection.patch

Simple patch that fix (for me) - gaspa, 2009-04-17 10:31

View differences:

lighttpd-1.4.19/src/connections.c 2009-04-17 12:01:55.000000000 +0200
/* 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
*
......
} else {
/* nothing to read */
con->close_timeout_ts = 0;
con->close_timeout_ts = LONG_MIN;
}
}
......
} 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) {
(2-2/2)