wengzhe opened a new pull request, #8915:
URL: https://github.com/apache/nuttx/pull/8915

   ## Summary
   According to RFC 2525, Section 2.17:
   "When an application closes a connection in such a way that it can no longer 
read any received data, the TCP SHOULD, per section 4.2.2.13 of RFC 1122, send 
a RST if there is any unread received data, or if any new data is received. "
   
   When our TCP socket is closed (even when the thread has exited), the peer 
can keep sending data and NuttX keeps replying ACK (we've tried for ~12h). This 
is not a good behavior (also different from Linux), so send RST instead of ACK 
for data receiving in FIN_WAIT.
   
   ## Impact
   TCP, sending RST instead of ACK for data receiving in FIN_WAIT.
   
   ## Testing
   iperf2, CI
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to