We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0b76c3 commit fe25a32Copy full SHA for fe25a32
src/test/extras/SimpleFileServer.java
@@ -60,7 +60,8 @@ public static void main(String[] args) throws Exception {
60
String rootDir = args[0];
61
int port = Integer.parseInt(args[1]);
62
String logfile = args[2];
63
- HttpServer server = HttpServer.create(new InetSocketAddress(port), 0);
+ HttpServer server = HttpServer.create(new InetSocketAddress(port), 200);
64
+ server.setExecutor(Executors.newVirtualThreadPerTaskExecutor());
65
HttpHandler h = new FileServerHandler(rootDir);
66
HttpHandler h1 = new EchoHandler();
67
HttpHandler h2 = new DevNullHandler();
0 commit comments