Revert "socket:return -EAGAIN if timeout happends in psock_tcp_send"
This reverts commitfbe641a916
. This issue already fixed by below change: | commit715785245c
| Author: chao an <anchao@xiaomi.com> | Date: Mon Jan 16 12:37:44 2023 +0800 | | net/tcp: fix potential busy loop in tcp_send_buffered.c | | if the wrbuffer does not have enough space to send the rest of | the data, then the send function will loop infinitely in nonblock | mode, add send timeout check to avoid this issue. | | Signed-off-by: chao an <anchao@xiaomi.com> Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
26286fd19e
commit
85a8249821
|
@ -1551,12 +1551,6 @@ ssize_t psock_tcp_send(FAR struct socket *psock, FAR const void *buf,
|
|||
{
|
||||
iob_free_chain(iob);
|
||||
}
|
||||
else
|
||||
{
|
||||
nerr("ERROR: no IOB available\n");
|
||||
ret = -EAGAIN;
|
||||
goto errout_with_lock;
|
||||
}
|
||||
}
|
||||
|
||||
/* Dump I/O buffer chain */
|
||||
|
|
Loading…
Reference in New Issue