diff --git a/net/tcp/tcp_send_buffered.c b/net/tcp/tcp_send_buffered.c index 762a3a2d9f..a4c4777aa9 100644 --- a/net/tcp/tcp_send_buffered.c +++ b/net/tcp/tcp_send_buffered.c @@ -1259,6 +1259,11 @@ ssize_t psock_tcp_send(FAR struct socket *psock, FAR const void *buf, if (chunk_result == 0) { DEBUGASSERT(nonblock); + if (result == 0) + { + result = -EAGAIN; + } + break; }