diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-27 22:27:31 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-27 22:27:31 +0100 |
commit | 58beb5ec4ca0dae1e9adc8617c9d69e5b558b9cc (patch) | |
tree | c68287623cc064a576470c13264cf844451651f1 /src/cadet/gnunet-service-cadet-new_channel.c | |
parent | b9ea024cbe97dc152624a9c18717246cda49c25f (diff) | |
download | gnunet-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.c | 7 |
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, |