You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TcpConn.setNoDelay(noDelay?: boolean): void
Enable/disable the use of Nagle's algorithm.
This suggests calling setNoDelay(true) would enable the algorithm.
true = enable, false = disable — seems logical to me. However setting TCP_NODELAY=true on a TCP connection actually disables the algorithm from what I've researched.
The
setNoDelay
method for Deno.TcpConn states:This suggests calling
setNoDelay(true)
would enable the algorithm.true
= enable,false
= disable — seems logical to me. However settingTCP_NODELAY=true
on a TCP connection actually disables the algorithm from what I've researched.Compare this to
setKeepAlive
:For this method
true
does mean "enable".So if I'm not mistaken about
setNoDelay
the logic is reversed in the description. Either way I think more clarity would be useful.The text was updated successfully, but these errors were encountered: