diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-11-19 10:09:22 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-11-19 10:09:22 +0000 |
commit | d88f361070f88763f512c9359bf6c49ad8fb2e9a (patch) | |
tree | f38b18c70ecf5be36de9c3f29ace298192f9e863 /src | |
parent | 7232e5ddbece1da38b6bd2eab127e06a40a1cb01 (diff) | |
download | gnunet-d88f361070f88763f512c9359bf6c49ad8fb2e9a.tar.gz gnunet-d88f361070f88763f512c9359bf6c49ad8fb2e9a.zip |
dont try to send to more peers that exist
Diffstat (limited to 'src')
-rw-r--r-- | src/dht/gnunet-dht-driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dht/gnunet-dht-driver.c b/src/dht/gnunet-dht-driver.c index 7f2447c13..47493c256 100644 --- a/src/dht/gnunet-dht-driver.c +++ b/src/dht/gnunet-dht-driver.c | |||
@@ -2014,8 +2014,8 @@ schedule_find_peer_requests (void *cls, const struct GNUNET_SCHEDULER_TaskContex | |||
2014 | if (find_peer_ctx->total > max_outstanding_find_peers) | 2014 | if (find_peer_ctx->total > max_outstanding_find_peers) |
2015 | find_peer_ctx->total = max_outstanding_find_peers; | 2015 | find_peer_ctx->total = max_outstanding_find_peers; |
2016 | 2016 | ||
2017 | if (find_peer_ctx->total > GNUNET_CONTAINER_heap_get_size(find_peer_ctx->peer_min_heap)) /* Don't try to send more messages than we have peers! */ | 2017 | if (find_peer_ctx->total > num_peers) /* Don't try to send more messages than we have peers! */ |
2018 | find_peer_ctx->total = GNUNET_CONTAINER_heap_get_size(find_peer_ctx->peer_min_heap); | 2018 | find_peer_ctx->total = num_peers; |
2019 | 2019 | ||
2020 | find_peer_ctx->last_sent = find_peer_ctx->total; | 2020 | find_peer_ctx->last_sent = find_peer_ctx->total; |
2021 | GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "Sending %u find peer messages (goal at least %u connections)\n", find_peer_ctx->total, connection_estimate(num_peers, DEFAULT_BUCKET_SIZE)); | 2021 | GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "Sending %u find peer messages (goal at least %u connections)\n", find_peer_ctx->total, connection_estimate(num_peers, DEFAULT_BUCKET_SIZE)); |