TCP continuously sends NDDD

Delayed ACK: When the protocol stack is attached to TCP data, it is not necessarily sent immediately, but tends to wait for a timeout or to meet special conditions.If the recipient has data backup, the ACK will also be sent together.

After starting the TCP_Nodelay option, Socket adds two flag bit TCP_NAGLE_OFF and TCP_NAGLE_PUSH to close the TCP_Nodelay option, Socket only turns off TCP_NAGLE_OFF flag.

When the package is sent, TCP_NAGLE_PUSH is judged, causing TCP_CORK failure.

solution:

When the CLIENT is transmitted, only the TCP_CORK option is used to avoid failure.Server ends TCP_QUICKACK, ACK as soon as possible