novitski / bitcoinj

Automatically exported from code.google.com/p/bitcoinj
Apache License 2.0
0 stars 0 forks source link

IrcDiscovery fail in case of sole IRC server #354

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
IrcDiscovery.getPeers is permanently fail with PeerDiscoveryException if 
InetAddress.getAllByName(server) return only one IP address.

To reproduce this situation try to use one of IP address (for examle 
173.246.103.92) instead of IRC host name irc.lfnet.org.

I suppose to add break operation after successful connection:
connection.connect(new InetSocketAddress(ip, port), timeoutMsec);
It allow to skip excessive checking (ipCursor == ipCursorStart)

Original issue reported on code.google.com by pshma...@gmail.com on 18 Mar 2013 at 12:05

GoogleCodeExporter commented 9 years ago
IRC is no longer used.

Original comment by mh.in.en...@gmail.com on 24 Nov 2013 at 11:20