From: Matthias Wachs Date: Tue, 17 Dec 2013 17:11:29 +0000 (+0000) Subject: do not reschedule timeout on sending X-Git-Tag: initial-import-from-subversion-38251~5371 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a82e9af3331fcf4585c741de582632e3aba759fc;p=oweals%2Fgnunet.git do not reschedule timeout on sending --- 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 */