[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -DHT: call try_connect also on already c
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -DHT: call try_connect also on already connected peers, just in case address changed |
Date: |
Mon, 26 Dec 2022 14:41:42 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new a5a6806f7 -DHT: call try_connect also on already connected peers, just
in case address changed
a5a6806f7 is described below
commit a5a6806f79a8cd8241e456bb27ca3a91a5798107
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Mon Dec 26 14:41:37 2022 +0100
-DHT: call try_connect also on already connected peers, just in case
address changed
---
src/dht/gnunet-service-dht_neighbours.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/dht/gnunet-service-dht_neighbours.c
b/src/dht/gnunet-service-dht_neighbours.c
index 709071b61..fe8106bca 100644
--- a/src/dht/gnunet-service-dht_neighbours.c
+++ b/src/dht/gnunet-service-dht_neighbours.c
@@ -2872,8 +2872,6 @@ GDS_try_connect (void *cls,
GNUNET_assert ( (peer_bucket >= 0) &&
((unsigned int) peer_bucket < MAX_BUCKETS));
bucket = &k_buckets[peer_bucket];
- if (bucket->peers_size >= bucket_size)
- return; /* do not care */
for (struct PeerInfo *pi = bucket->head;
NULL != pi;
pi = pi->next)
@@ -2886,6 +2884,8 @@ GDS_try_connect (void *cls,
uri);
return;
}
+ if (bucket->peers_size >= bucket_size)
+ return; /* do not care */
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Discovered peer %s at %s suitable for bucket %d (%u/%u), trying
to connect\n",
GNUNET_i2s (pid),
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: -DHT: call try_connect also on already connected peers, just in case address changed,
gnunet <=