diff options
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 0e61d1649..168a2b344 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -24,6 +24,7 @@ | |||
24 | */ | 24 | */ |
25 | #include "platform.h" | 25 | #include "platform.h" |
26 | #include "gnunet_hello_lib.h" | 26 | #include "gnunet_hello_lib.h" |
27 | #include "gnunet_constants.h" | ||
27 | #include "gnunet_connection_lib.h" | 28 | #include "gnunet_connection_lib.h" |
28 | #include "gnunet_container_lib.h" | 29 | #include "gnunet_container_lib.h" |
29 | #include "gnunet_nat_lib.h" | 30 | #include "gnunet_nat_lib.h" |
@@ -1191,7 +1192,7 @@ tcp_plugin_send (void *cls, | |||
1191 | GNUNET_assert (session != NULL); | 1192 | GNUNET_assert (session != NULL); |
1192 | GNUNET_assert (session->client != NULL); | 1193 | GNUNET_assert (session->client != NULL); |
1193 | 1194 | ||
1194 | GNUNET_SERVER_client_set_timeout(session->client, CONNECTED_LATENCY_EVALUATION_MAX_DELAY); | 1195 | GNUNET_SERVER_client_set_timeout(session->client, GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT); |
1195 | GNUNET_STATISTICS_update (plugin->env->stats, | 1196 | GNUNET_STATISTICS_update (plugin->env->stats, |
1196 | gettext_noop ("# bytes currently in TCP buffers"), | 1197 | gettext_noop ("# bytes currently in TCP buffers"), |
1197 | msgbuf_size, | 1198 | msgbuf_size, |
@@ -1740,7 +1741,7 @@ handle_tcp_welcome (void *cls, | |||
1740 | } | 1741 | } |
1741 | session->last_activity = GNUNET_TIME_absolute_get (); | 1742 | session->last_activity = GNUNET_TIME_absolute_get (); |
1742 | session->expecting_welcome = GNUNET_NO; | 1743 | session->expecting_welcome = GNUNET_NO; |
1743 | GNUNET_SERVER_client_set_timeout(client, CONNECTED_LATENCY_EVALUATION_MAX_DELAY); | 1744 | GNUNET_SERVER_client_set_timeout(client, GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT); |
1744 | GNUNET_SERVER_receive_done (client, GNUNET_OK); | 1745 | GNUNET_SERVER_receive_done (client, GNUNET_OK); |
1745 | } | 1746 | } |
1746 | 1747 | ||