Browse Source

degesch: add a comment about ENOTCONN

tags/v0.9.7
Přemysl Janouch 1 year ago
parent
commit
aa4e86c2a0
Signed by: Přemysl Janouch <p@janouch.name> GPG Key ID: A0420B94F92B9493
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      degesch.c

+ 2
- 0
degesch.c 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;


Loading…
Cancel
Save