Erlang Mailing Lists

Author Message

<  Erlang patches mailing list  ~  Patch for ssl application - ssl_accept error handling

Guest
Posted: Mon May 21, 2007 3:02 pm Reply with quote
Guest
Hi,
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
(ESOCK_TRANSPORT_ACCEPT_ERR).
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.

Regards

--
Robert Ga

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum