[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5505 - GNUnet/src/transports
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5505 - GNUnet/src/transports |
Date: |
Wed, 15 Aug 2007 03:31:46 -0600 (MDT) |
Author: grothoff
Date: 2007-08-15 03:31:44 -0600 (Wed, 15 Aug 2007)
New Revision: 5505
Modified:
GNUnet/src/transports/http.c
Log:
update to latest MHD API changes
Modified: GNUnet/src/transports/http.c
===================================================================
--- GNUnet/src/transports/http.c 2007-08-15 09:23:17 UTC (rev 5504)
+++ GNUnet/src/transports/http.c 2007-08-15 09:31:44 UTC (rev 5505)
@@ -25,8 +25,8 @@
*
* TODO:
* - connection timeout (shutdown inactive connections)
- * => CURL can help do this automatically, need to do it with MHD
- * and query CURL for timed-out connections (and then clean up)
+ * => CURL and MHD can help do this, we mostly need
+ * to make sure we clean up properly...
* - proper connection re-establishment (i.e., if a GET times out or
* dies otherwise, we need to re-start the TSession if the
* core wants to keep using it!)
@@ -1186,7 +1186,14 @@
mhd_daemon = MHD_start_daemon (MHD_USE_IPv4,
port,
&acceptPolicyCallback,
- NULL, &accessHandlerCallback, NULL);
+ NULL, &accessHandlerCallback, NULL,
+ MHD_OPTION_CONNECTION_TIMEOUT,
+ HTTP_TIMEOUT,
+ MHD_OPTION_CONNECTION_MEMORY_LIMIT,
+ 1024 * 128,
+ MHD_OPTION_CONNECTION_LIMIT,
+ 128,
+ MHD_OPTION_END);
}
http_running = YES;
curl_thread = PTHREAD_CREATE (&curl_runner, NULL, 32 * 1024);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5505 - GNUnet/src/transports,
gnunet <=