mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
ignore any sendmsg() errors
--HG-- branch : fastopen
This commit is contained in:
parent
46845fd3e8
commit
2a90c1ca7e
6
netio.c
6
netio.c
@ -103,8 +103,10 @@ static void connect_try_next(struct dropbear_progress_connection *c) {
|
|||||||
message.msg_iov = packet_queue_to_iovec(c->writequeue, &iovlen);
|
message.msg_iov = packet_queue_to_iovec(c->writequeue, &iovlen);
|
||||||
message.msg_iovlen = iovlen;
|
message.msg_iovlen = iovlen;
|
||||||
res = sendmsg(c->sock, &message, MSG_FASTOPEN);
|
res = sendmsg(c->sock, &message, MSG_FASTOPEN);
|
||||||
if (res < 0 && errno == EOPNOTSUPP) {
|
if (res < 0) {
|
||||||
TRACE(("Fastopen not supported"));
|
/* Not entirely sure which kind of errors are normal - 2.6.32 seems to
|
||||||
|
return EPIPE for any (nonblocking?) sendmsg(). just fall back */
|
||||||
|
TRACE(("sendmsg tcp_fastopen failed, falling back. %s", strerror(errno)));
|
||||||
/* No kernel MSG_FASTOPEN support. Fall back below */
|
/* No kernel MSG_FASTOPEN support. Fall back below */
|
||||||
fastopen = 0;
|
fastopen = 0;
|
||||||
/* Set to NULL to avoid trying again */
|
/* Set to NULL to avoid trying again */
|
||||||
|
Loading…
Reference in New Issue
Block a user