From: Matthias Wachs Date: Thu, 29 Sep 2011 09:28:19 +0000 (+0000) Subject: changing to constant X-Git-Tag: initial-import-from-subversion-38251~16888 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8816ed471a79cb80b871ec64dd3a9f04631d3b02;p=oweals%2Fgnunet.git changing to constant --- diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index df913d5bb..379cc3fb9 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c @@ -861,7 +861,7 @@ server_start (struct Plugin *plugin) #if MHD_VERSION >= 0x00090E00 - timeout = 3; + timeout = GNUNET_CONSTANTS_DISCONNECT_SESSION_TIMEOUT.rel_value / 1000; GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, "MHD can set timeout per connection! Default time out %u sec.\n", timeout); #else @@ -869,7 +869,6 @@ server_start (struct Plugin *plugin) GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, "MHD cannot set timeout per connection! Default time out %u sec.\n", timeout); #endif - plugin->server_v4 = NULL; if (plugin->ipv4 == GNUNET_YES) {