nuttx-mirror/drivers/usrsock
Zhe Weng 0d118ec214 usrsock_server: Use remain instead of iov[0] to figure out partial requests
Found a problem:

When sendto handler gets an error, it will release all its rx buffer,
then iov_base becomes NULL. But it cannot let client stop its request,
then the next data from client cannot be handled by usrsock server
correctly.

It's better to note down the remaining bytes, then we can stop at
correct time.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-04-15 21:56:03 +09:00
..
Kconfig move usrsock to kernel space 2023-01-11 15:14:03 +08:00
Make.defs move usrsock to kernel space 2023-01-11 15:14:03 +08:00
usrsock_dev.c nuttx: replace all ARRAY_SIZE()/ARRAYSIZE() to nitems() 2023-02-09 20:05:44 +08:00
usrsock_rpmsg.c net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
usrsock_rpmsg_server.c usrsock_server: Use remain instead of iov[0] to figure out partial requests 2023-04-15 21:56:03 +09:00