mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 13:03:04 +00:00
NDT: Set connect timeout to 30s so test won't hang too long if server unresponsive
This commit is contained in:
1 file changed
+2
-1
@@ -3018,7 +3018,8 @@ public class Tcpbw100 extends JApplet implements ActionListener {
|
||||
if (_log.shouldWarn())
|
||||
_log.warn("New SSL socket to " + hostAddress + ':' + ctlPort);
|
||||
} else {
|
||||
rv = new Socket(hostAddress, ctlPort);
|
||||
rv = new Socket();
|
||||
rv.connect(new InetSocketAddress(hostAddress, ctlPort), 30*1000);;
|
||||
if (_log.shouldWarn())
|
||||
_log.warn("New non-SSL socket to " + hostAddress + ':' + ctlPort);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user