diff --git a/src/main/java/dev/latvian/apps/tinyserver/HTTPServer.java b/src/main/java/dev/latvian/apps/tinyserver/HTTPServer.java index ea76cb4..401e5c3 100644 --- a/src/main/java/dev/latvian/apps/tinyserver/HTTPServer.java +++ b/src/main/java/dev/latvian/apps/tinyserver/HTTPServer.java @@ -192,6 +192,7 @@ public void run() { if (socketChannel != null) { socketChannel.socket().setSoTimeout((keepAliveTimeout + 1) * 1000); + socketChannel.finishConnect(); var connection = createConnection(socketChannel, Instant.now()); connection.lastActivity = now; connections.add(connection);