Skip to content

Commit 85dd5e7

Browse files
committed
fix issue robaho#24 - performance regression
1 parent c4ca553 commit 85dd5e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/robaho/net/httpserver/ServerImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,13 +420,13 @@ private void acceptConnection(Socket s) throws IOException {
420420

421421
if (http2) {
422422
Http2Exchange t = new Http2Exchange(protocol, c);
423-
executor.execute(t);
423+
t.run();
424424
} else {
425425
Exchange t = new Exchange(protocol, c);
426-
executor.execute(t);
426+
t.run();
427427
}
428-
} catch (Exception e) {
429-
logger.log(Level.TRACE, "Dispatcher Exception", e);
428+
} catch (Throwable t) {
429+
logger.log(Level.WARNING, "Dispatcher Exception", t);
430430
stats.handleExceptionCount.incrementAndGet();
431431
closeConnection(c);
432432
}

0 commit comments

Comments
 (0)