gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r7588 - libmicrohttpd/src/daemon


From: gnunet
Subject: [GNUnet-SVN] r7588 - libmicrohttpd/src/daemon
Date: Sun, 24 Aug 2008 10:06:00 -0600 (MDT)

Author: grothoff
Date: 2008-08-24 10:06:00 -0600 (Sun, 24 Aug 2008)
New Revision: 7588

Modified:
   libmicrohttpd/src/daemon/connection.c
Log:
fixing problem with busy response reported on mailinglist

Modified: libmicrohttpd/src/daemon/connection.c
===================================================================
--- libmicrohttpd/src/daemon/connection.c       2008-08-24 15:34:34 UTC (rev 
7587)
+++ libmicrohttpd/src/daemon/connection.c       2008-08-24 16:06:00 UTC (rev 
7588)
@@ -1832,6 +1832,13 @@
               connection->state = MHD_CONNECTION_CONTINUE_SENDING;
               break;
             }
+         if (connection->response != NULL)
+           {
+             /* we refused (no upload allowed!) */
+             connection->remaining_upload_size = 0; 
+             /* force close, in case client still tries to upload... */
+             connection->read_closed = MHD_YES; 
+           }
           connection->state = (connection->remaining_upload_size == 0)
             ? MHD_CONNECTION_FOOTERS_RECEIVED : MHD_CONNECTION_CONTINUE_SENT;
           continue;





reply via email to

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