This commit is contained in:
地平线
2015-07-27 11:17:31 +08:00
parent 05496b5979
commit 1da1422d2d

View File

@@ -112,7 +112,7 @@ public abstract class Server {
this.transport = ProtocolServer.create(this.protocol, context);
this.transport.open();
transport.setOption(StandardSocketOptions.SO_REUSEADDR, true);
transport.setOption(StandardSocketOptions.SO_RCVBUF, 8 * 1024);
transport.setOption(StandardSocketOptions.SO_RCVBUF, 16 * 1024 + 8);
transport.bind(address, backlog);
logger.info(this.getClass().getSimpleName() + " listen: " + address);
logger.info(this.getClass().getSimpleName() + " threads: " + threads + ", bufferPoolSize: " + bufferPoolSize + ", responsePoolSize: " + responsePoolSize);