gvanem / Watt-32

Watt-32 TCP/IP library and samples.
https://www.watt-32.net/
18 stars 8 forks source link

`sendmsg()`/`writev_s()`: Return immediately after partial write #106

Closed jwt27 closed 7 months ago

jwt27 commented 7 months ago

Addition to #101. After a partial write on a non-blocking socket, we should not try to send the next iovec. It is very likely that the buffer gets flushed in tcp_tick(), and then we end up skipping bytes. That would be very bad.

gvanem commented 7 months ago

Merged and thanks again.