From f63e66fdbf2b8f066b2cf447e5291cbaa898cb87 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Mon, 23 Feb 2015 00:39:06 +0000 Subject: Don't timeout XHR clients so quickly. --- src/transport/plugin_transport_http_server.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index 9d34ef291..9f2908bda 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c @@ -1525,24 +1525,8 @@ server_lookup_connection (struct HTTP_Server_Plugin *plugin, s->scope); } - if ( (NULL == s->server_recv) || - (NULL == s->server_send) ) - { - to = (HTTP_SERVER_NOT_VALIDATED_TIMEOUT.rel_value_us / 1000LL / 1000LL); - MHD_set_connection_option (mhd_connection, - MHD_CONNECTION_OPTION_TIMEOUT, to); - server_reschedule (plugin, sc->mhd_daemon, GNUNET_NO); - } - else - { - LOG (GNUNET_ERROR_TYPE_DEBUG, - "Session %p for peer `%s' fully connected\n", - s, GNUNET_i2s (&target)); - to = (HTTP_SERVER_SESSION_TIMEOUT.rel_value_us / 1000LL / 1000LL); - server_mhd_connection_timeout (plugin, s, to); - } - LOG (GNUNET_ERROR_TYPE_DEBUG, - "Setting timeout for %p to %u sec.\n", sc, to); + to = (HTTP_SERVER_SESSION_TIMEOUT.rel_value_us / 1000LL / 1000LL); + server_mhd_connection_timeout (plugin, s, to); return sc; } -- cgit v1.2.3