libmicrohttpd

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

commit bf515f7217fde589c78a2319b91de0d2c90b834d
parent 24686322811eea3ce1ec0b9329b050ef19bf70a1
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 21 Aug 2007 07:02:40 +0000

fix

Diffstat:
MChangeLog | 5+++++
Msrc/daemon/connection.c | 3++-
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,8 @@ +Tue Aug 21 01:01:46 MDT 2007 + Fixing assertion failure that occured when a client + closed the connection after sending some data but + not the full headers. + Sat Aug 18 03:06:09 MDT 2007 Check for out of memory when adding headers to responses. Check for NULL key when looking diff --git a/src/daemon/connection.c b/src/daemon/connection.c @@ -947,7 +947,8 @@ MHD_connection_handle_read (struct MHD_Connection *connection) { /* other side closed connection */ connection->read_close = MHD_YES; - if (connection->readLoc > 0) + if ( (connection->headersReceived == 1) && + (connection->readLoc > 0) ) MHD_call_connection_handler (connection); #if DEBUG_CLOSE MHD_DLOG (connection->daemon,