summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_manipulation.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-05-17 11:37:35 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-05-17 11:37:35 +0000
commit28cd8070bed28d153f060d7593e6b9dab433aff2 (patch)
treec17d1a5474e4fa1a95537dfc79dbe79b5277098f /src/transport/gnunet-service-transport_manipulation.c
parent876cc5b4d9e2fca9fb5ebb3c05e965cdeb6c9b34 (diff)
more dbg msg
Diffstat (limited to 'src/transport/gnunet-service-transport_manipulation.c')
-rw-r--r--src/transport/gnunet-service-transport_manipulation.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/transport/gnunet-service-transport_manipulation.c b/src/transport/gnunet-service-transport_manipulation.c
index 82b6832cb..417f50d41 100644
--- a/src/transport/gnunet-service-transport_manipulation.c
+++ b/src/transport/gnunet-service-transport_manipulation.c
@@ -551,10 +551,15 @@ GST_manipulation_recv (void *cls,
quota_delay = GST_receive_callback (cls, peer, message,
session, sender_address, sender_address_len);
+
if (quota_delay.rel_value > m_delay.rel_value)
- return quota_delay;
- else
- return m_delay;
+ m_delay = quota_delay;
+
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Delaying next receive for peer `%s' for %llu ms\n",
+ GNUNET_i2s (peer), (long long unsigned int) m_delay.rel_value);
+ return m_delay;
+
}