aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-12-17 17:11:29 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-12-17 17:11:29 +0000
commita82e9af3331fcf4585c741de582632e3aba759fc (patch)
treef19c1bc6a0652bd764fafa43e74a3ed3b9290657 /src/transport/plugin_transport_udp.c
parent8b309aea3f60e941808cecb2d0f25d387953baff (diff)
downloadgnunet-a82e9af3331fcf4585c741de582632e3aba759fc.tar.gz
gnunet-a82e9af3331fcf4585c741de582632e3aba759fc.zip
do not reschedule timeout on sending
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r--src/transport/plugin_transport_udp.c8
1 files changed, 7 insertions, 1 deletions
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,
1858 udp->reserved = htonl (0); 1858 udp->reserved = htonl (0);
1859 udp->sender = *plugin->env->my_identity; 1859 udp->sender = *plugin->env->my_identity;
1860 1860
1861 reschedule_session_timeout(s); 1861 /* We do not update the session time out here!
1862 * Otherwise this session will not timeout since we send keep alive before
1863 * session can timeout
1864 *
1865 * For UDP we update session timeout only on receive, this will cover keep
1866 * alives, since remote peer will reply with keep alive response!
1867 */
1862 if (udpmlen <= UDP_MTU) 1868 if (udpmlen <= UDP_MTU)
1863 { 1869 {
1864 /* unfragmented message */ 1870 /* unfragmented message */