nuttx/net/tcp
zhekunren 078782846e
Some checks are pending
Build Documentation / build-html (push) Waiting to run
MemBrowse Memory Report / changes-filter (push) Waiting to run
MemBrowse Memory Report / load-targets (push) Waiting to run
MemBrowse Memory Report / identical (push) Blocked by required conditions
MemBrowse Memory Report / analyze (push) Blocked by required conditions
net/tcp: add configurable delayed ACK threshold
The delayed ACK logic previously sent an ACK for at least every second
received segment (hard-coded threshold of 2 per RFC 1122).  Add the
NET_TCP_ACK_FREQUENCY Kconfig option (range 1-255, default 2) to make
this threshold configurable at build time.

The delayed ACK timer still forces an ACK after at most 0.5 seconds, so
RFC 1122 timing compliance is preserved regardless of the configured
threshold.  The default value of 2 keeps the exact current behavior:
the new condition rx_unackseg >= FREQ - 1 is equivalent to the previous
rx_unackseg > 0, and the counter increment degenerates to the previous
rx_unackseg = 1 assignment.

Signed-off-by: zhekunren <zhekunren@qq.com>
Assisted-by: GLM-5.2 <noreply@z.ai>
2026-09-08 09:00:19 +08:00
..
CMakeLists.txt net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
Kconfig net/tcp: add configurable delayed ACK threshold 2026-09-08 09:00:19 +08:00
Make.defs net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
tcp.h !sys/types.h: change time_t and clock_t to int64_t to align with other OSes 2026-05-19 16:21:28 +08:00
tcp_accept.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_appsend.c net/tcp: add configurable delayed ACK threshold 2026-09-08 09:00:19 +08:00
tcp_backlog.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_callback.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_cc.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_close.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_conn.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_connect.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_devpoll.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_dump.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_finddev.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
tcp_getsockopt.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_input.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_ioctl.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_ipselect.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_listen.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_monitor.c net/tcp: don't accept a reset connection as connected (fixes send hang) 2026-07-28 15:25:47 -03:00
tcp_netpoll.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_notifier.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_recvfrom.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_recvwindow.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_send.c net/tcp/tcp_send: Remove work_available check when updating retransmit timer 2026-08-05 10:56:59 +02:00
tcp_send_buffered.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_send_unbuffered.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_sendfile.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_seqno.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_setsockopt.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_shutdown.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tcp_timer.c !sys/types.h: change time_t and clock_t to int64_t to align with other OSes 2026-05-19 16:21:28 +08:00
tcp_txdrain.c net: replace net_sem*wait with conn_dev_sem*wait to simplify code logic 2026-01-02 07:48:06 -03:00
tcp_wrbuffer.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00