summaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_unix.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-06-23 11:26:59 +0000
committerChristian Grothoff <christian@grothoff.org>2014-06-23 11:26:59 +0000
commitfd512b7696978adc5241f83092756afbdfcfd1af (patch)
treedd07687841dcf3763f2243fc82cf522ef20e9c19 /src/transport/plugin_transport_unix.c
parent30d89ade90a0d0ae3a3581adbd6110bf7db9b35a (diff)
-towards having the monitoring API supported by TCP
Diffstat (limited to 'src/transport/plugin_transport_unix.c')
-rw-r--r--src/transport/plugin_transport_unix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c
index 0c3d29733..9ca58ef51 100644
--- a/src/transport/plugin_transport_unix.c
+++ b/src/transport/plugin_transport_unix.c
@@ -886,6 +886,7 @@ unix_plugin_get_session (void *cls,
session->target = address->peer;
session->address = GNUNET_HELLO_address_copy (address);
session->plugin = plugin;
+ session->timeout = GNUNET_TIME_relative_to_absolute (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT);
session->timeout_task = GNUNET_SCHEDULER_add_delayed (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT,
&session_timeout,
session);