Bug #82811 Disable Nagle's algorithm

Submitted: 31 Aug 2016 7:52 Modified: 24 Jul 2025 18:42
Reporter: Michiel Hazelhof Email Updates:
Status: Verified Impact on me:
None 
Category:Connector / NET Severity:S4 (Feature request)
Version:6.9.9,7.0.4dmr OS:Any
Assigned to: Assigned Account CPU Architecture:Any
Tags: Nagle, NoDelay, tcp

[31 Aug 2016 7:52] Michiel Hazelhof
Description:
Nagle's algorithm combine's small packets which is great for applications that don't mind a bit of latency and want to reduce network congestion a tiny bit.

I think the connector should be focused on performance (DB connections are meant to be fast right?) it would be best to disable this algorithm.

How to repeat:
NA

Suggested fix:
7.0.4dmr, StreamCreator.cs, GetTcpStream:
client.Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.NoDelay, 1);

6.9.9, MyNetworkStream.cs, CreateUnixEndPoint:
socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.NoDelay, 1);

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.050 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.