Skip to content

Commit

Permalink
⚡ NettyServer: acceptThreadCount should default set 1
Browse files Browse the repository at this point in the history
  • Loading branch information
chenchen42 committed Feb 7, 2018
1 parent 3cdd691 commit b30ef99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/blade/server/netty/NettyServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private void startServer(long startTime) throws Exception {
b.option(ChannelOption.SO_REUSEADDR, true);
b.childOption(ChannelOption.SO_REUSEADDR, true);

int acceptThreadCount = environment.getInt(ENC_KEY_NETTY_ACCEPT_THREAD_COUNT, 0);
int acceptThreadCount = environment.getInt(ENC_KEY_NETTY_ACCEPT_THREAD_COUNT, 1);
int ioThreadCount = environment.getInt(ENV_KEY_NETTY_IO_THREAD_COUNT, 0);

// enable epoll
Expand Down

0 comments on commit b30ef99

Please sign in to comment.