Skip to content

Commit 2371b61

Browse files
committed
Disable Nagle's Algorithm. Fixes #921
1 parent b458e4d commit 2371b61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/MySqlConnector/Core/ServerSession.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,7 @@ private async Task<bool> OpenTcpSocketAsync(ConnectionSettings cs, ILoadBalancer
962962
HostName = hostName;
963963
m_tcpClient = tcpClient;
964964
m_socket = m_tcpClient.Client;
965+
m_socket.NoDelay = true;
965966
m_stream = m_tcpClient.GetStream();
966967
m_socket.SetKeepAlive(cs.Keepalive);
967968
lock (m_lock)

0 commit comments

Comments
 (0)