Filter Discovered peers for ipv6 support#6498
Conversation
|
b9d08c7 to
ebf915b
Compare
d9d5aab to
260d6b4
Compare
pinges
left a comment
There was a problem hiding this comment.
Left two comments, but LGTM
| .orElseGet(sourceEndpoint::getHost); | ||
| .orElseGet( | ||
| () -> { | ||
| LOG.trace( |
There was a problem hiding this comment.
LOG.atTrace would be nice ...
There was a problem hiding this comment.
since this is already in a lambda, the extra log lambda isn't necessary :)
There was a problem hiding this comment.
oh wait, yeah. you are right! I originally had this logging every time, but it was noisy and moved it to trace
| @@ -173,4 +196,20 @@ private static boolean isPortAvailableForUdp(final int port) { | |||
| public static boolean isPortAvailable(final int port) { | |||
There was a problem hiding this comment.
I've had a look at the isPortAvailableFor[Tcp|Udp] and I thought that we might want to close the ServerSocket if we successfully binded to it?
There was a problem hiding this comment.
Apparently SO_REUSEADDR makes it moot, but I don't see why we wouldn't unbind. It isn't in the scope of this PR, but I can put up a subsequent one.
…ltering, add ipv6 check/fallback Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
260d6b4 to
7dc8bc7
Compare
Signed-off-by: garyschulte <garyschulte@gmail.com>
1757144 to
59da07a
Compare
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
* use existing NetworkUtility for PeerDiscoveryAgent pingpacket data filtering, add ipv6 check/fallback * log at debug when we override pingpacket from * use java native address parsing rather than lookup by host Signed-off-by: garyschulte <garyschulte@gmail.com> Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
PR description
updates PeerDiscoveryAgent to
Fixed Issue(s)
fixes #6475