aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet-new_channel.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-27 22:27:31 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-27 22:27:31 +0100
commit58beb5ec4ca0dae1e9adc8617c9d69e5b558b9cc (patch)
treec68287623cc064a576470c13264cf844451651f1 /src/cadet/gnunet-service-cadet-new_channel.c
parentb9ea024cbe97dc152624a9c18717246cda49c25f (diff)
downloadgnunet-58beb5ec4ca0dae1e9adc8617c9d69e5b558b9cc.tar.gz
gnunet-58beb5ec4ca0dae1e9adc8617c9d69e5b558b9cc.zip
also count messages dropped due to slow clients as allowable losses in unreliable mode
Diffstat (limited to 'src/cadet/gnunet-service-cadet-new_channel.c')
-rw-r--r--src/cadet/gnunet-service-cadet-new_channel.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cadet/gnunet-service-cadet-new_channel.c b/src/cadet/gnunet-service-cadet-new_channel.c
index ebc566c83..8633e7f74 100644
--- a/src/cadet/gnunet-service-cadet-new_channel.c
+++ b/src/cadet/gnunet-service-cadet-new_channel.c
@@ -1242,6 +1242,13 @@ GCCH_handle_channel_plaintext_data (struct CadetChannel *ch,
1242 1242
1243 /* Yep, need to drop. Drop the oldest message in 1243 /* Yep, need to drop. Drop the oldest message in
1244 the buffer. */ 1244 the buffer. */
1245 LOG (GNUNET_ERROR_TYPE_DEBUG,
1246 "Queue full due slow client on %s, dropping oldest message\n",
1247 GCCH_2s (ch));
1248 GNUNET_STATISTICS_update (stats,
1249 "# messages dropped due to slow client",
1250 1,
1251 GNUNET_NO);
1245 drop = ccc->head_recv; 1252 drop = ccc->head_recv;
1246 GNUNET_CONTAINER_DLL_remove (ccc->head_recv, 1253 GNUNET_CONTAINER_DLL_remove (ccc->head_recv,
1247 ccc->tail_recv, 1254 ccc->tail_recv,