This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit f163a749eb42ceef01db1870da7e214b7199de77 Author: Marco Casaroli <[email protected]> AuthorDate: Thu Nov 26 15:36:09 2026 +0100 Documentation/os/networking: Describe the RST of a closed backlog. The TCP state machine page says what happens to a connection that waits in the backlog of a listener. Add that the close of the listener, or listen() again with a smaller backlog, now resets such connections. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- Documentation/os/networking/tcp_state_machine.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/os/networking/tcp_state_machine.rst b/Documentation/os/networking/tcp_state_machine.rst index 1d1750d2288..049177ee8af 100644 --- a/Documentation/os/networking/tcp_state_machine.rst +++ b/Documentation/os/networking/tcp_state_machine.rst @@ -378,6 +378,10 @@ that came before the RST, then ``ECONNRESET`` once, then end-of-file). connection that the peer resets while it waits in the backlog of the listener is freed: ``accept()`` waits for the next connection. +When the listener is closed, each connection that waits in its backlog gets +a RST and is freed, as on Linux. ``listen()`` again with a smaller backlog +does the same to the connections that the new backlog cannot hold. + ``tcp_start_monitor()`` sets the connection state of the socket (``_SF_CONNECTED``, ``_SF_CLOSED``) with the device locked, where the monitor changes it for an event of the peer. ``accept()`` and ``connect()`` do not
