Files
RedBear-OS/netstack/src
Anhad Singh cdea756569 fix(tcp/write_buf): incorrect return value
On success, the number of bytes written should be returned.

Previously `buf.len()` was always returned. The function `send_slice`
> ... returns the amount of octets actually enqueued, which is limited
> by the amount of free space in the transmit buffer; down to zero.

"down to zero" is okay as that is checked by `can_send`.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2026-06-25 23:55:00 +10:00
..
2025-06-28 16:16:30 +02:00
2025-06-28 16:16:30 +02:00
2025-11-23 22:09:20 -08:00
2025-06-28 16:16:30 +02:00