nuttx/net/tcp
Petteri Aimonen 06e5b661ed tcp: Recover from iob shortage with TCP_WRITE_BUFFERS
When CONFIG_NET_TCP_WRITE_BUFFERS is enabled, iobs are used for
both queuing data from application, and for assembling packets
for sending. If there is a system-wide shortage of iobs, it could
happen that there is not enough free space to form any packets
to send. The buffers allocated for TCP data also can't be released
until the packet is sent.

Normally this should be avoided by setting suitable values for
CONFIG_IOB_NBUFFERS and CONFIG_IOB_THROTTLE. The default values
are ok for light usage, but can run out when using multiple
simultaneous TCP streams.

Before this commit, iob shortage would cause TCP connections to
get stuck and eventually timeout. With this change, TCP stack
sends smaller packets, eventually freeing some buffers from the
write queue.
2023-12-15 20:12:13 -08:00
..
CMakeLists.txt
Kconfig net/tcp: Support initial sequence number described in RFC 6528 2023-11-06 09:04:09 +08:00
Make.defs
tcp_accept.c
tcp_appsend.c
tcp_backlog.c
tcp_callback.c
tcp_cc.c
tcp_close.c
tcp_conn.c net: Support multiple IPv6 address per netdev 2023-11-07 19:30:36 +08:00
tcp_connect.c net: Support multiple IPv6 address per netdev 2023-11-07 19:30:36 +08:00
tcp_devpoll.c
tcp_dump.c
tcp_finddev.c
tcp_getsockopt.c
tcp_input.c
tcp_ioctl.c
tcp_ipselect.c
tcp_listen.c
tcp_monitor.c
tcp_netpoll.c poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
tcp_notifier.c
tcp_recvfrom.c
tcp_recvwindow.c
tcp_send_buffered.c tcp: Recover from iob shortage with TCP_WRITE_BUFFERS 2023-12-15 20:12:13 -08:00
tcp_send_unbuffered.c
tcp_send.c ipv6: Fix source address with many addresses in same network 2023-12-13 06:13:25 -08:00
tcp_sendfile.c
tcp_seqno.c net/tcp: Support initial sequence number described in RFC 6528 2023-11-06 09:04:09 +08:00
tcp_setsockopt.c
tcp_shutdown.c
tcp_timer.c
tcp_txdrain.c
tcp_wrbuffer.c
tcp.h net/tcp: Support initial sequence number described in RFC 6528 2023-11-06 09:04:09 +08:00