提交 7502fbeb authored 作者: Thomas Mueller's avatar Thomas Mueller

A workaround for a Windows socket problem has been implemented.

上级 da62cac3
...@@ -109,7 +109,7 @@ public class NetUtils { ...@@ -109,7 +109,7 @@ public class NetUtils {
socket.connect(new InetSocketAddress(address, port), socket.connect(new InetSocketAddress(address, port),
SysProperties.SOCKET_CONNECT_TIMEOUT); SysProperties.SOCKET_CONNECT_TIMEOUT);
return socket; return socket;
} catch (BindException e) { } catch (IOException e) {
if (i >= SysProperties.SOCKET_CONNECT_RETRY) { if (i >= SysProperties.SOCKET_CONNECT_RETRY) {
throw e; throw e;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论