[erlang-patches] Patch for ssl application - ssl_accept error handling

Robert Gałach <>
Mon May 21 17:01:40 CEST 2007

I found there is a problem in ssl application in OTP current (R11B-4) 
and earlier  versions. If non-ssl data has been sent into ssl socket 
during ssl_accept
process, esock sends wrong error message to ssl_server 
This causes strange behaviour of ssl_server and finally ssl_server is 
going down.
See: http://www.jabber.ru/bugzilla/show_bug.cgi?id=335

I made that little patch to deal with it. It changes error message sent 
from esock to ssl_server to ESOCK_SSL_ACCEPT_ERR with just opened socket 
fd. It also changes error handling in ssl_server - removes previously 
opened socket fd from "conns" set.

I hope the patch will be usefull.


Robert Gałach
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ssl_patch.diff
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20070521/e5db1bad/attachment.ksh>

More information about the erlang-patches mailing list