From aa4e86c2a0f7090e697830124ff1629d53d1ac5d Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Fri, 3 Aug 2018 22:49:51 +0200 Subject: degesch: add a comment about ENOTCONN --- degesch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/degesch.c b/degesch.c index 9511538..8a1de8f 100644 --- a/degesch.c +++ b/degesch.c @@ -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; -- cgit v1.2.3-70-g09d2