Revert "socket:return -EAGAIN if timeout happends in psock_tcp_send"

This reverts commit fbe641a916.

This issue already fixed by below change:

| commit 715785245c
| 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:
chao an 2023-01-29 11:34:11 +08:00 committed by Xiang Xiao
parent 26286fd19e
commit 85a8249821
1 changed files with 0 additions and 6 deletions

View File

@ -1551,12 +1551,6 @@ ssize_t psock_tcp_send(FAR struct socket *psock, FAR const void *buf,
{ {
iob_free_chain(iob); iob_free_chain(iob);
} }
else
{
nerr("ERROR: no IOB available\n");
ret = -EAGAIN;
goto errout_with_lock;
}
} }
/* Dump I/O buffer chain */ /* Dump I/O buffer chain */