TCP_NODELAY not found on Ubuntu
Did you #include <netinet/tcp.h>?
Did you #include <netinet/tcp.h>?
TCP’s primary design goal is to allow reliable data communication in the face of packet loss, packet reordering, and — key, here — packet duplication. It’s fairly obvious how a TCP/IP network stack deals with all this while the connection is up, but there’s an edge case that happens just after the connection closes. What … Read more
For my suggestion, please read the last section: “When to use SO_LINGER with timeout 0”. Before we come to that a little lecture about: Normal TCP termination TIME_WAIT FIN, ACK and RST Normal TCP termination The normal TCP termination sequence looks like this (simplified): We have two peers: A and B A calls close() A … Read more