Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Disable Nagle algorithm (really better network performances) #561

Merged
merged 1 commit into from
Mar 4, 2019
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
1 change: 1 addition & 0 deletions src/Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ private async Task<TcpServerConnection> createServerConnection(string remoteHost
{
tcpClient = new TcpClient(upStreamEndPoint)
{
NoDelay = true,
ReceiveTimeout = proxyServer.ConnectionTimeOutSeconds * 1000,
SendTimeout = proxyServer.ConnectionTimeOutSeconds * 1000,
SendBufferSize = proxyServer.BufferSize,
Expand Down