degesch: add a comment about ENOTCONN

This commit is contained in:
Přemysl Eric Janouch 2018-08-03 22:49:51 +02:00
parent 5bbe9ceef8
commit aa4e86c2a0
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 2 additions and 0 deletions

View File

@ -4758,6 +4758,8 @@ irc_real_shutdown (struct server *s)
s->transport->in_before_shutdown (s); s->transport->in_before_shutdown (s);
while (shutdown (s->socket, SHUT_WR) == -1) while (shutdown (s->socket, SHUT_WR) == -1)
// XXX: we get ENOTCONN with OpenSSL (not plain) when a localhost
// server is aborted, why? strace says read 0, write 31, shutdown -1.
if (!soft_assert (errno == EINTR)) if (!soft_assert (errno == EINTR))
break; break;