Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public HttpServer(String name, HttpRequestHandler requestHandler) throws IOExcep
@Override
public void handleConnection(SocketChannel connection) throws IOException {
connection.socket().setSoTimeout(600000); // set a 10 min max idle timeout
connection.socket().setTcpNoDelay(true); // headers and body are separate writes, nagle + delayed-ack would stall each response ~40ms
executor.execute(new HttpConnection(connection.socket(), requestHandler));
}

Expand Down
Loading