Skip to content

Commit

Permalink
Added finishConnect()
Browse files Browse the repository at this point in the history
  • Loading branch information
LatvianModder committed Oct 13, 2024
1 parent 630c5e1 commit 434a394
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/dev/latvian/apps/tinyserver/HTTPServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 434a394

Please sign in to comment.