This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 254b7d040d1009d188f7cdf3332711aecf703ed6 Author: Marco Casaroli <[email protected]> AuthorDate: Fri Nov 20 17:19:26 2026 +0100 Documentation/os/networking: Describe the default TCP buffer limit. With CONFIG_NET_RECV_BUFSIZE or CONFIG_NET_SEND_BUFSIZE at 0, a TCP connection limits its read-ahead and its write buffers to 1/8 of the IOBs above CONFIG_IOB_THROTTLE each, and at least one segment of the largest MSS. SO_RCVBUF and SO_SNDBUF change the limit of a TCP socket also then. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- Documentation/os/networking/netdriver.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/os/networking/netdriver.rst b/Documentation/os/networking/netdriver.rst index 55e7c6b8352..c9958d84a80 100644 --- a/Documentation/os/networking/netdriver.rst +++ b/Documentation/os/networking/netdriver.rst @@ -120,6 +120,11 @@ over an IPC: with ``CONFIG_NET_SEND_BUFSIZE``. That same cap limits UDP read-ahead, so a UDP-throughput-critical socket should raise its own buffer via ``setsockopt(SO_RCVBUF)`` rather than changing the TCP-safe default. + When an option is 0, a TCP connection still has a limit: its read-ahead + and its write buffers each use 1/8 of the IOBs above + ``CONFIG_IOB_THROTTLE``, and at least one segment of the largest MSS. So + one connection cannot take the whole pool. ``SO_RCVBUF`` and + ``SO_SNDBUF`` change the limit of a TCP socket also then. Enlarging the buffer helps only up to the rate the socket can be drained; sustained overload is dropped regardless. Keeping out-of-order reassembly (``CONFIG_NET_TCP_OUT_OF_ORDER``) enabled lets a single loss recover in one
