libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 14e7bc7fc5c02502f92f169ddfe819fd68c42526
parent aa8fb24fefd926a9c56d38ad0d41313af39de62e
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri,  4 Jan 2008 23:04:27 +0000

fix

Diffstat:
MChangeLog | 4++++
Msrc/daemon/connection.c | 2++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,7 @@ +Fri Jan 4 16:02:08 MST 2008 + Fix to properly close connection if application signals + problem handling the request. - AS + Wed Jan 2 16:41:05 MST 2008 Improvements and bugfixes to post processor implementation. - AS diff --git a/src/daemon/connection.c b/src/daemon/connection.c @@ -1631,6 +1631,8 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) continue; case MHD_CONNECTION_HEADERS_PROCESSED: call_connection_handler (connection); /* first call */ + if (connection->state == MHD_CONNECTION_CLOSED) + continue; if (need_100_continue (connection)) { connection->state = MHD_CONNECTION_CONTINUE_SENDING;