[JDEV] Patch for server SSL hang in jabberd when client is slow authenticating
Nathan Sharp
spamnps+jabber at phoenix-int.com
Tue May 28 20:24:25 CDT 2002
This patch fixes a bug where if a client connecting via SSL doesn't
authenticate very quickly, the server will hang until the client
finishes. This hang requires a kill -9 to force the server to stop (in
the case where the client hangs while authenticating). This happens,
for example, using Exodus when it displays one of the warning messages
about the certificate being invalid in some way (expired, wrong cn,
etc). The server will stay hung until the client O.K.'s or cancels the
dialog.
The fix is to set the socket to non-blocking mode immediately after
accepting it, as non-blocking mode is not inherited from the listening
socket. I'd appreciate it if this could make it into the next patch
release of 1.4 series! This patch is against the 1.4.2 source code.
Nathan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mio_ssl.c.patch
URL: <https://www.jabber.org/jdev/attachments/20020528/2a9baa71/attachment-0002.txt>
More information about the JDev
mailing list