You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2020/01/11 18:38:17 UTC
[incubator-nuttx] branch master updated:
net/tcp/tcp_send_unbuffered.c: Correct a bad signal number
This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 45a83e9 net/tcp/tcp_send_unbuffered.c: Correct a bad signal number
45a83e9 is described below
commit 45a83e94811744603c0ea299c949f0613d1ca58d
Author: Gregory Nutt <sp...@gmail.com>
AuthorDate: Sat Jan 11 15:36:51 2020 -0300
net/tcp/tcp_send_unbuffered.c: Correct a bad signal number
There is no errno ETIMEOUT. Probably should be ETIMEDOUT.
---
net/tcp/tcp_send_unbuffered.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/tcp/tcp_send_unbuffered.c b/net/tcp/tcp_send_unbuffered.c
index 1d9b502..1ff0406 100644
--- a/net/tcp/tcp_send_unbuffered.c
+++ b/net/tcp/tcp_send_unbuffered.c
@@ -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 */
}