Skip to content
Commit f1ef2c6c authored by Andrew Webster's avatar Andrew Webster Committed by Gregory Nutt
Browse files

TCP: attempt to flush the write buffers before closing

When a socket is closed, it should make sure that any pending write
data is sent before the FIN is sent.  It already would wait for all
sent data to be acked, however it would discard any pending write
data that had not been sent at least once.

This change adds a check for pending write data in addition to unacked
data.  However, to be able to actually send any new data, the send
callback must be left.  The callback should be freed later when the socket
is actually destroyed.
parent cdd187a7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment