projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b309ae
)
do not reschedule timeout on sending
author
Matthias Wachs
<wachs@net.in.tum.de>
Tue, 17 Dec 2013 17:11:29 +0000
(17:11 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Tue, 17 Dec 2013 17:11:29 +0000
(17:11 +0000)
src/transport/plugin_transport_udp.c
patch
|
blob
|
history
diff --git
a/src/transport/plugin_transport_udp.c
b/src/transport/plugin_transport_udp.c
index 663748277979b7ae896df53d396931162e8ba269..bdf10c19706a6ee0e4c85afdd34a60c2cc4da88c 100644
(file)
--- 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 */