NDT: Set connect timeout to 30s so test won't hang too long if server unresponsive

This commit is contained in:
zzz committed 2025-01-19 07:50:45 -05:00
1 parent a92411702b
commit 8b61036f19
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);
}