diff options
author | Christian Grothoff <christian@grothoff.org> | 2007-08-21 07:02:40 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2007-08-21 07:02:40 +0000 |
commit | bf515f7217fde589c78a2319b91de0d2c90b834d (patch) | |
tree | 64f85cb3e6358c1aced07dc92d7ae9aae4f011a2 | |
parent | 24686322811eea3ce1ec0b9329b050ef19bf70a1 (diff) | |
download | libmicrohttpd-bf515f7217fde589c78a2319b91de0d2c90b834d.tar.gz libmicrohttpd-bf515f7217fde589c78a2319b91de0d2c90b834d.zip |
fix
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/daemon/connection.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ | |||
1 | Tue Aug 21 01:01:46 MDT 2007 | ||
2 | Fixing assertion failure that occured when a client | ||
3 | closed the connection after sending some data but | ||
4 | not the full headers. | ||
5 | |||
1 | Sat Aug 18 03:06:09 MDT 2007 | 6 | Sat Aug 18 03:06:09 MDT 2007 |
2 | Check for out of memory when adding headers to | 7 | Check for out of memory when adding headers to |
3 | responses. Check for NULL key when looking | 8 | responses. Check for NULL key when looking |
diff --git a/src/daemon/connection.c b/src/daemon/connection.c index 864e1190..e51693d9 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c | |||
@@ -947,7 +947,8 @@ MHD_connection_handle_read (struct MHD_Connection *connection) | |||
947 | { | 947 | { |
948 | /* other side closed connection */ | 948 | /* other side closed connection */ |
949 | connection->read_close = MHD_YES; | 949 | connection->read_close = MHD_YES; |
950 | if (connection->readLoc > 0) | 950 | if ( (connection->headersReceived == 1) && |
951 | (connection->readLoc > 0) ) | ||
951 | MHD_call_connection_handler (connection); | 952 | MHD_call_connection_handler (connection); |
952 | #if DEBUG_CLOSE | 953 | #if DEBUG_CLOSE |
953 | MHD_DLOG (connection->daemon, | 954 | MHD_DLOG (connection->daemon, |