diff options
Diffstat (limited to 'src/core/gnunet-service-core.c')
-rw-r--r-- | src/core/gnunet-service-core.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index 3828460dc..04e6d0141 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c | |||
@@ -501,8 +501,7 @@ handle_client_send (void *cls, const struct SendMessage *sm) | |||
501 | * (which triggered removal of the 'car') and now the client gives us a message | 501 | * (which triggered removal of the 'car') and now the client gives us a message |
502 | * just *before* the client learns about the disconnect. Theoretically, we | 502 | * just *before* the client learns about the disconnect. Theoretically, we |
503 | * might also now be *again* connected. So this can happen (but should be | 503 | * might also now be *again* connected. So this can happen (but should be |
504 | * rare). If it does happen, the message is discarded. */ | 504 | * rare). If it does happen, the message is discarded. */GNUNET_STATISTICS_update (GSC_stats, |
505 | GNUNET_STATISTICS_update (GSC_stats, | ||
506 | gettext_noop ( | 505 | gettext_noop ( |
507 | "# messages discarded (session disconnected)"), | 506 | "# messages discarded (session disconnected)"), |
508 | 1, | 507 | 1, |
@@ -806,8 +805,7 @@ GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender, | |||
806 | and a 99% chance of being kept if we are at the soft max. | 805 | and a 99% chance of being kept if we are at the soft max. |
807 | The reason is to make it more likely to drop control traffic | 806 | The reason is to make it more likely to drop control traffic |
808 | (ACK, queries) which may be cummulative or highly redundant, | 807 | (ACK, queries) which may be cummulative or highly redundant, |
809 | and cheap to drop than data traffic. */ | 808 | and cheap to drop than data traffic. */qlen = GNUNET_MQ_get_length (c->mq); |
810 | qlen = GNUNET_MQ_get_length (c->mq); | ||
811 | if ((qlen >= HARD_MAX_QUEUE) || | 809 | if ((qlen >= HARD_MAX_QUEUE) || |
812 | ((qlen > SOFT_MAX_QUEUE) && | 810 | ((qlen > SOFT_MAX_QUEUE) && |
813 | ((GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, | 811 | ((GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, |