Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Timout error responses should be send only if the client sent a

request previously. Otherwise, the connection should be just closed.
  • Loading branch information...
commit 06f9ae1033ce88ebd14a2491dd530a68232591f5 1 parent 5185a4a
@alobbs alobbs authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 cherokee/thread.c
View
4 cherokee/thread.c
@@ -514,7 +514,9 @@ process_polling_connections (cherokee_thread_t *thd)
/* Most likely a 'Gateway Timeout'
*/
- if (conn->phase <= phase_add_headers) {
+ if ((conn->phase >= phase_processing_header) ||
+ (conn->phase == phase_reading_header) && (conn->incoming_header.len >= 1))
+ {
/* Push a hardcoded error
*/
send_hardcoded_error (&conn->socket,

0 comments on commit 06f9ae1

Please sign in to comment.
Something went wrong with that request. Please try again.