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:
e77ffe8
)
- don't send keepalives if traffic is queued
author
Bart Polot
<bart@net.in.tum.de>
Thu, 24 Jul 2014 15:46:45 +0000
(15:46 +0000)
committer
Bart Polot
<bart@net.in.tum.de>
Thu, 24 Jul 2014 15:46:45 +0000
(15:46 +0000)
src/cadet/gnunet-service-cadet_connection.c
patch
|
blob
|
history
diff --git
a/src/cadet/gnunet-service-cadet_connection.c
b/src/cadet/gnunet-service-cadet_connection.c
index 5c28f9e4c65935348c44d66b2bf66290f4d62d7d..3aff5c33f32990546de90370f625b455760c38a6 100644
(file)
--- a/
src/cadet/gnunet-service-cadet_connection.c
+++ b/
src/cadet/gnunet-service-cadet_connection.c
@@
-910,6
+910,7
@@
send_connection_keepalive (struct CadetConnection *c, int fwd)
if (0 < fc->queue_n)
{
LOG (GNUNET_ERROR_TYPE_INFO, "not sending keepalive, traffic in queue\n");
if (0 < fc->queue_n)
{
LOG (GNUNET_ERROR_TYPE_INFO, "not sending keepalive, traffic in queue\n");
+ return;
}
GNUNET_STATISTICS_update (stats, "# keepalives sent", 1, GNUNET_NO);
}
GNUNET_STATISTICS_update (stats, "# keepalives sent", 1, GNUNET_NO);