Skip to content

Commit f6e74df

Browse files
author
wangzihao
committed
发布2.3.23
hotfix: bug# 解决客户端的tcp连接建立繁忙时,客户端会出现connection reset
1 parent a4060c6 commit f6e74df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/netty/StartupServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ protected void config(ServerBootstrap bootstrap) throws Exception {
162162
long maxDirectMemory = -1;
163163
System.setProperty("io.netty.maxDirectMemory", String.valueOf(maxDirectMemory));
164164
}
165-
bootstrap.childOption(ChannelOption.WRITE_SPIN_COUNT, Integer.MAX_VALUE);
165+
// bootstrap.childOption(ChannelOption.WRITE_SPIN_COUNT, Integer.MAX_VALUE);
166166
bootstrap.childOption(ChannelOption.WRITE_BUFFER_WATER_MARK, new WriteBufferWaterMark(32 * 1024, Integer.MAX_VALUE));
167167
bootstrap.childOption(ChannelOption.AUTO_CLOSE, true);
168168

0 commit comments

Comments
 (0)