Browse Source

degesch: add a comment about ENOTCONN

Přemysl Janouch 4 months 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)
4758 4758
 		s->transport->in_before_shutdown (s);
4759 4759
 
4760 4760
 	while (shutdown (s->socket, SHUT_WR) == -1)
4761
+		// XXX: we get ENOTCONN with OpenSSL (not plain) when a localhost
4762
+		// server is aborted, why?  strace says read 0, write 31, shutdown -1.
4761 4763
 		if (!soft_assert (errno == EINTR))
4762 4764
 			break;
4763 4765
 

Loading…
Cancel
Save