aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/transport/plugin_transport_http_server.c20
1 files 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,
1525 s->scope); 1525 s->scope);
1526 } 1526 }
1527 1527
1528 if ( (NULL == s->server_recv) || 1528 to = (HTTP_SERVER_SESSION_TIMEOUT.rel_value_us / 1000LL / 1000LL);
1529 (NULL == s->server_send) ) 1529 server_mhd_connection_timeout (plugin, s, to);
1530 {
1531 to = (HTTP_SERVER_NOT_VALIDATED_TIMEOUT.rel_value_us / 1000LL / 1000LL);
1532 MHD_set_connection_option (mhd_connection,
1533 MHD_CONNECTION_OPTION_TIMEOUT, to);
1534 server_reschedule (plugin, sc->mhd_daemon, GNUNET_NO);
1535 }
1536 else
1537 {
1538 LOG (GNUNET_ERROR_TYPE_DEBUG,
1539 "Session %p for peer `%s' fully connected\n",
1540 s, GNUNET_i2s (&target));
1541 to = (HTTP_SERVER_SESSION_TIMEOUT.rel_value_us / 1000LL / 1000LL);
1542 server_mhd_connection_timeout (plugin, s, to);
1543 }
1544 LOG (GNUNET_ERROR_TYPE_DEBUG,
1545 "Setting timeout for %p to %u sec.\n", sc, to);
1546 return sc; 1530 return sc;
1547} 1531}
1548 1532