diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-09-29 09:28:19 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-09-29 09:28:19 +0000 |
commit | 8816ed471a79cb80b871ec64dd3a9f04631d3b02 (patch) | |
tree | 72184dbe5d2d253127c0e440b233dc11d3b14596 /src/transport/plugin_transport_http_server.c | |
parent | 80e57aec8d9a36444af5a2c64ec16eac965ce45f (diff) | |
download | gnunet-8816ed471a79cb80b871ec64dd3a9f04631d3b02.tar.gz gnunet-8816ed471a79cb80b871ec64dd3a9f04631d3b02.zip |
changing to constant
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-rw-r--r-- | src/transport/plugin_transport_http_server.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) | |||
861 | 861 | ||
862 | 862 | ||
863 | #if MHD_VERSION >= 0x00090E00 | 863 | #if MHD_VERSION >= 0x00090E00 |
864 | timeout = 3; | 864 | timeout = GNUNET_CONSTANTS_DISCONNECT_SESSION_TIMEOUT.rel_value / 1000; |
865 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, | 865 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, |
866 | "MHD can set timeout per connection! Default time out %u sec.\n", timeout); | 866 | "MHD can set timeout per connection! Default time out %u sec.\n", timeout); |
867 | #else | 867 | #else |
@@ -869,7 +869,6 @@ server_start (struct Plugin *plugin) | |||
869 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, | 869 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, |
870 | "MHD cannot set timeout per connection! Default time out %u sec.\n", timeout); | 870 | "MHD cannot set timeout per connection! Default time out %u sec.\n", timeout); |
871 | #endif | 871 | #endif |
872 | |||
873 | plugin->server_v4 = NULL; | 872 | plugin->server_v4 = NULL; |
874 | if (plugin->ipv4 == GNUNET_YES) | 873 | if (plugin->ipv4 == GNUNET_YES) |
875 | { | 874 | { |