mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
f1ef2c6cde
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.