8158690: GET request via HTTP/2 has a huge delays due to Nagle’s Algorithm and Delayed ACK clash

Reviewed-by: chegar
This commit is contained in:
Sergey Kuksenko 2016-06-24 06:52:29 +01:00
parent c53f3cbcbe
commit d90e966a97

@ -128,6 +128,7 @@ class PlainHttpConnection extends HttpConnection implements AsyncConnection {
this.chan = SocketChannel.open();
int bufsize = client.getReceiveBufferSize();
chan.setOption(StandardSocketOptions.SO_RCVBUF, bufsize);
chan.setOption(StandardSocketOptions.TCP_NODELAY, true);
} catch (IOException e) {
throw new InternalError(e);
}