gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r16779 - libmicrohttpd/src/daemon
Date: Tue, 13 Sep 2011 09:46:29 +0200

Author: grothoff
Date: 2011-09-13 09:46:29 +0200 (Tue, 13 Sep 2011)
New Revision: 16779

Modified:
   libmicrohttpd/src/daemon/connection.c
Log:
stuff

Modified: libmicrohttpd/src/daemon/connection.c
===================================================================
--- libmicrohttpd/src/daemon/connection.c       2011-09-13 07:33:40 UTC (rev 
16778)
+++ libmicrohttpd/src/daemon/connection.c       2011-09-13 07:46:29 UTC (rev 
16779)
@@ -104,9 +104,12 @@
  */
 #define DEBUG_SEND_DATA MHD_NO
 
+
 /**
  * Get all of the headers from the request.
  *
+ * @param connection connection to get values from
+ * @param kind types of values to iterate over
  * @param iterator callback to call on each header;
  *        maybe NULL (then just count headers)
  * @param iterator_cls extra argument to iterator
@@ -139,6 +142,7 @@
   return ret;
 }
 
+
 /**
  * This function can be used to add an entry to
  * the HTTP headers of a connection (so that the
@@ -187,10 +191,13 @@
   return MHD_YES;
 }
 
+
 /**
  * Get a particular header value.  If multiple
  * values match the kind, return any one of them.
  *
+ * @param connection connection to get values from
+ * @param kind what kind of value are we looking for
  * @param key the header to look for
  * @return NULL if no such item was found
  */
@@ -212,6 +219,7 @@
   return NULL;
 }
 
+
 /**
  * Queue a response to be transmitted to the client (as soon as
  * possible but after MHD_AccessHandlerCallback returns).
@@ -254,9 +262,13 @@
   return MHD_YES;
 }
 
+
 /**
  * Do we (still) need to send a 100 continue
  * message for this connection?
+ *
+ * @param connection connection to test
+ * @return 0 if we don't need 100 CONTINUE, 1 if we do
  */
 static int
 need_100_continue (struct MHD_Connection *connection)
@@ -279,6 +291,9 @@
 /**
  * Close the given connection and give the
  * specified termination code to the user.
+ *
+ * @param connection connection to close
+ * @param termination_code termination reason to give
  */
 void
 MHD_connection_close (struct MHD_Connection *connection,
@@ -296,6 +311,11 @@
                              &connection->client_context,
                              termination_code);
   connection->client_aware = MHD_NO;
+  if (pos->response != NULL)
+    {
+      MHD_destroy_response (pos->response);
+      pos->response = NULL;
+    }
 }
 
 




reply via email to

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