Questions tagged [nagle]

Nagle's algorithm, named after John Nagle, is a means of improving the efficiency of TCP/IP networks by reducing the number of packets that need to be sent over the network.

Nagle's algorithm, named after John Nagle, is a means of improving the efficiency of TCP/IP networks by reducing the number of packets that need to be sent over the network.

40 questions
0
votes
0 answers

Not getting error response of sent packet from ESP32C3 LwIP TCP server

I am facing issue of not receiving error in return of "send()" function in case of TCP socket disconnected at client side. I am using example TCP server(ESP32C3) by using LwIP stack (version v2.1.3). To debug this issue I have added delay of 50ms…
craval
  • 1
0
votes
1 answer

TCP_NODELAY parameter implication on MSS and CPU utilisation

While I was trying to compose test-suite using netperf I had to go through the manual where I came across the below line for option -D If setting TCP_NODELAY with -D affects throughput and/or service demand for tests where the send size (-m) is…
0
votes
1 answer

setsockopt( TCP_NODELAY, 1 ): Permission denied

I have code that's worked without change since the 90s that is now getting Permission denied on Linux when trying to turn off the Nagle algorithm. Read of the man pages and a google search don't indicate why. Any ideas? int iFlags, iSize; /*…
Swiss Frank
  • 1,985
  • 15
  • 33
0
votes
1 answer

When exactly does dotnet's tcp socket's send method not send all bytes?

Like all socket APIs, it says that it returns the number of bytes actually sent. Under which circumstances does the returned number not match the input's size? My naive assumption was that it would send out full segments until the window is full,…
Benni
  • 1,030
  • 2
  • 11
  • 18
0
votes
0 answers

Nagle algorithm on receiver side

I think I understand (but I may be wrong ;-)) the principle of Nagle algorithm on sender side: messages can be delayed by the IP Stack on sender side as long as the previous packet has not been acknowledged. Nevertheless, if a single packet is sent…
David
  • 1
0
votes
0 answers

php echo string too long

I'm not sure if this is a php bug or server config but I can't seem to echo strings much over 2,000,000 characters in length. The page just hangs. This works on my local machine but not on my live server. $data = ''; for($i = 0; $i < 3000000;…
0
votes
1 answer

Webjobs SDK Beta - Is Nagle supported?

Does the Webjobs SDK support disabling the Nagle algorithm? I have read the article here http://blogs.msdn.com/b/windowsazurestorage/archive/2010/06/25/nagle-s-algorithm-is-not-friendly-towards-small-requests.aspx and I wonder if it is possible to…
John
  • 71
  • 1
  • 3
0
votes
2 answers

Proper set_socket_init_handler syntax or modify source to turn on TCP_NODELAY with websocket++

I'm having trouble implementing the example code to turn on TCP_NODELAY for a websocket++ endpoint. This is a client example, and this is a server example. The testee examples compile and work as expected, and the debug examples frequently compile…
user1382306
-1
votes
1 answer

.NET WebSockets and TCP_NODELAY

Is it possible to build a WebSocket Client in C#.NET that allows me to set the TCP_NODELAY property to True on the socket (i.e. disable Nagle)? I have tried a bunch of WebSocket libraries that don't appear to have this option. Thanks
user185813
  • 481
  • 1
  • 5
  • 16
-1
votes
1 answer

Is Nagle's Algorithm the only algorithm with the same use?

Just asking, does anyone know if Nagle's Algorithm is the only algorithm that is use in packet sending? Are there any other algorithms that's the same like Nagle's? And if there aren't any, has Nagle's Algorithm been improved over the years? Thanks…
cas
  • 39
  • 6
1 2
3