Skip to content

Commit e3a0464

Browse files
committed
Set worker thread count
1 parent afc4280 commit e3a0464

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/me/lucko/bytebin/Bytebin.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ public Bytebin(Configuration config) throws Exception {
175175
serverOpts.setCompressionLevel(null);
176176
serverOpts.setMaxRequestSize((int) maxContentLength);
177177
serverOpts.setIoThreads(config.getInt(Option.IO_THREADS, 32));
178+
serverOpts.setWorkerThreads(config.getInt(Option.EXECUTOR_POOL_SIZE, 32));
178179

179180
ExecutionMode executionMode = ExecutionMode.valueOf(
180181
config.getString(Option.EXECUTION_MODE, "EVENT_LOOP").toUpperCase(Locale.ROOT)

0 commit comments

Comments
 (0)