casaroli commented on PR #22145:
URL: https://github.com/apache/nuttx/pull/22145#issuecomment-7135047676

   tcp_backlogdetach() sets the blparent of each pending connection to NULL 
under the list lock, and tcp_input() reads blparent under that lock: a reset in 
the window finds NULL, marks the connection closed and does not free it, so 
only tcp_backlogfree() frees it. We add a 5 ms sleep between the detach and the 
free and reset the pending connections while the listener closes: 2400 resets 
come in the window, and each connection is freed once.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to