degesch: add a comment about ENOTCONN

This commit is contained in:
2018-08-03 22:49:51 +02:00
parent 5bbe9ceef8
commit aa4e86c2a0

View File

@@ -4758,6 +4758,8 @@ irc_real_shutdown (struct server *s)
s->transport->in_before_shutdown (s);
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))
break;