mirror of
https://github.com/apache/nuttx.git
synced 2025-12-19 01:29:44 +08:00
net/tcp/tcp_send_unbuffered.c: Correct a bad signal number
There is no errno ETIMEOUT. Probably should be ETIMEDOUT.
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
dd5748cee8
commit
45a83e9481
@@ -704,7 +704,7 @@ ssize_t psock_tcp_send(FAR struct socket *psock,
|
||||
|
||||
ret = net_timedwait(&state.snd_sem,
|
||||
_SO_TIMEOUT(psock->s_sndtimeo));
|
||||
if (ret != -ETIMEOUT || acked == state.snd_acked)
|
||||
if (ret != -ETIMEDOUT || acked == state.snd_acked)
|
||||
{
|
||||
break; /* Timeout without any progress */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user