Skip to content

Commit 32df5d7

Browse files
author
夜色
committed
add test branch
1 parent 2123ab3 commit 32df5d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/mpush/client/TcpConnection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ private boolean doConnect(String host, int port) {
205205
channel = SocketChannel.open();
206206
channel.socket().setTcpNoDelay(true);
207207
channel.socket().setKeepAlive(true);
208+
channel.socket().setReuseAddress(true);
208209
channel.connect(new InetSocketAddress(host, port));
209210
logger.w("connect server ok [%s:%s]", host, port);
210211
onConnected(channel);

0 commit comments

Comments
 (0)