aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_tcp.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-07-12 13:30:41 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-07-12 13:30:41 +0000
commite877e7c776779225269a37a8697be2271d5790c5 (patch)
treef6838e785d038963808c28c549ed5ea43b78f2b6 /src/transport/plugin_transport_tcp.c
parent6ce274c7e9fb01c76dc904d907fce9c893d0fc44 (diff)
downloadgnunet-e877e7c776779225269a37a8697be2271d5790c5.tar.gz
gnunet-e877e7c776779225269a37a8697be2271d5790c5.zip
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r--src/transport/plugin_transport_tcp.c5
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