If client connection aborts during parse of "\r\n\r\n", then lighttpd never cleans up the

connection and keeps trying to read from the died connection.  lighttpd still responses
to other requests, it just eats up all the cpu trying to handle the died connection.

this commit fixes that problem


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1473 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.14
Robert Jakabosky 16 years ago
parent 4a609547a0
commit 4f1587c57e
  1. 2
      src/connections.c

@ -970,7 +970,7 @@ int connection_handle_read_state(server *srv, connection *con) {
}
} else {
/* a splited \r \n */
return -1;
break;
}
}
}

Loading…
Cancel
Save