gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r5529 - in libmicrohttpd: . src/daemon


From: gnunet
Subject: [GNUnet-SVN] r5529 - in libmicrohttpd: . src/daemon
Date: Tue, 21 Aug 2007 01:02:40 -0600 (MDT)

Author: grothoff
Date: 2007-08-21 01:02:40 -0600 (Tue, 21 Aug 2007)
New Revision: 5529

Modified:
   libmicrohttpd/ChangeLog
   libmicrohttpd/src/daemon/connection.c
Log:
fix

Modified: libmicrohttpd/ChangeLog
===================================================================
--- libmicrohttpd/ChangeLog     2007-08-20 16:07:47 UTC (rev 5528)
+++ libmicrohttpd/ChangeLog     2007-08-21 07:02:40 UTC (rev 5529)
@@ -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

Modified: libmicrohttpd/src/daemon/connection.c
===================================================================
--- libmicrohttpd/src/daemon/connection.c       2007-08-20 16:07:47 UTC (rev 
5528)
+++ libmicrohttpd/src/daemon/connection.c       2007-08-21 07:02:40 UTC (rev 
5529)
@@ -947,7 +947,8 @@
     {
       /* 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,





reply via email to

[Prev in Thread] Current Thread [Next in Thread]