From 628fc06cabe2b5c9257bfd74b1f9a2a8208edd1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graziano?= Date: Mon, 4 Mar 2019 14:13:51 +0100 Subject: [PATCH] Disable Nagle algorithm (really better network performances) --- src/Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs b/src/Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs index 35013231f..2c2000eb0 100644 --- a/src/Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs +++ b/src/Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs @@ -271,6 +271,7 @@ private async Task createServerConnection(string remoteHost { tcpClient = new TcpClient(upStreamEndPoint) { + NoDelay = true, ReceiveTimeout = proxyServer.ConnectionTimeOutSeconds * 1000, SendTimeout = proxyServer.ConnectionTimeOutSeconds * 1000, SendBufferSize = proxyServer.BufferSize,