do not reschedule timeout on sending
authorMatthias Wachs <wachs@net.in.tum.de>
Tue, 17 Dec 2013 17:11:29 +0000 (17:11 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Tue, 17 Dec 2013 17:11:29 +0000 (17:11 +0000)
src/transport/plugin_transport_udp.c

index 663748277979b7ae896df53d396931162e8ba269..bdf10c19706a6ee0e4c85afdd34a60c2cc4da88c 100644 (file)
@@ -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 */