mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-06 05:55:54 +00:00
In the stack both unacked_len and send_data_total track the amount of data for retransmission. send_data_total actually accounts the total bytes in the buffer, where unacked_len is used to control the retransmission progress. Using unacked_len is sometimes reset to 0, this can lead to more data being allowd in the send_data buffer. In worse case this can cause depletion of the net buffers, causing a stall and crash of the connection. The value send_data_total actually accounts the total amount of data in the send_data buffer, so it is the proper value to used in the tcp_window_full function. Signed-off-by: Sjors Hettinga <s.a.hettinga@gmail.com> |
||
---|---|---|
.. | ||
bluetooth | ||
canbus | ||
console | ||
cpp | ||
debug | ||
demand_paging | ||
dfu | ||
disk | ||
emul | ||
fb | ||
fs | ||
ipc | ||
jwt | ||
logging | ||
lorawan | ||
mgmt | ||
modbus | ||
net | ||
pm | ||
portability | ||
random | ||
sd | ||
settings | ||
shell | ||
stats | ||
storage | ||
task_wdt | ||
testsuite | ||
timing | ||
tracing | ||
usb | ||
CMakeLists.txt | ||
Kconfig |