2

I just wanted some insight into how Nagle's algorithm is handled in regards to an application vs host.

So, say the host had TCP_NODELAY enabled, but the Java application didn't, which would take priority?

What about the other way round?

John Kugelman
  • 349,597
  • 67
  • 533
  • 578
Majored
  • 172
  • 7
  • The Regustry setting determines the default value. The Java API overrides that. – user207421 Jan 29 '19 at 21:15
  • Thank you for that. Any sources on this, or just from experience? @user207421 – Majored Jan 29 '19 at 21:47
  • It follows by definition, and in any case the Registry can't act dynamically on the socket after it's created. The API can. – user207421 Jan 29 '19 at 22:11
  • You may be able to query to check "if it's set" using https://docs.oracle.com/javase/7/docs/api/java/net/SocketOptions.html or possibly https://docs.oracle.com/javase/7/docs/api/java/net/Socket.html#getTcpNoDelay() and come back and tell us which one takes precedence? :) – rogerdpack Jan 30 '19 at 00:00
  • I know that it's enabled by default in the SocketOption, but I believe the specific application this is in reference to disables it, so by @user's response, I'm guessing it's disabled not matter the setting in the Windows registry. I'll look into it futher though. – Majored Jan 30 '19 at 07:52

0 Answers0