Please sign in to comment.
handler_proxy: Don't set the 'got all' flag when POST data is received
That flag only use is to know if the connection can be re-used. Getting all the POST data from the client has _nothing_ to do with that, we must only set it when the response from the backend is complete. Failure to do this results in the connection trying to be reused when it's not ready ... In case of failure it's not closed and the next request might try to use it whatever state its in. Signed-off-by: Sylvain Munaut <email@example.com>
- Loading branch information...
Showing with 13 additions and 2 deletions.
|@@ -0,0 +1,13 @@|
|+Bug 1364 defines the following:|
|+1. Configure cherokee with a reverse proxy handler to a given backend and a 5 second timeout|
|+2. In that backend, just sleep for 10 s before responding|
|+3. Do two POST one after the other|
|+4. In the error log you'll find :|
|+[11/06/2012 14:26:49.791] (error) socket.c:708 - Could not write to socket:|
|+ write(18, ..): 'Bad file descriptor' | It looks like you've hit a bug in the server.|
|+ Please, do not hesitate to report it at http://bugs.cherokee-project.com/|
|+ so the developer team can fix it.|