Skip to content

Commit 434a394

Browse files
committed
Added finishConnect()
1 parent 630c5e1 commit 434a394

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/dev/latvian/apps/tinyserver/HTTPServer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ public void run() {
192192

193193
if (socketChannel != null) {
194194
socketChannel.socket().setSoTimeout((keepAliveTimeout + 1) * 1000);
195+
socketChannel.finishConnect();
195196
var connection = createConnection(socketChannel, Instant.now());
196197
connection.lastActivity = now;
197198
connections.add(connection);

0 commit comments

Comments
 (0)