From a82e9af3331fcf4585c741de582632e3aba759fc Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Tue, 17 Dec 2013 17:11:29 +0000 Subject: [PATCH] do not reschedule timeout on sending --- src/transport/plugin_transport_udp.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 663748277..bdf10c197 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c @@ -1858,7 +1858,13 @@ udp_plugin_send (void *cls, udp->reserved = htonl (0); udp->sender = *plugin->env->my_identity; - reschedule_session_timeout(s); + /* We do not update the session time out here! + * Otherwise this session will not timeout since we send keep alive before + * session can timeout + * + * For UDP we update session timeout only on receive, this will cover keep + * alives, since remote peer will reply with keep alive response! + */ if (udpmlen <= UDP_MTU) { /* unfragmented message */ -- 2.25.1