Erlang Mailing Lists

Author Message

<  Erlang patches mailing list  ~  Bug in R9C SSL

alexey at sevcom.net
Posted: Wed Oct 29, 2003 2:04 pm Reply with quote
Guest
Hi!

There is a bug in ssl_broker.erl: when ssl:recv/3 called with finite
timeout value, and it reach this timeout, socket switches to closed state.

Patch that fixes this problem:

--- ssl_broker.erl.orig Wed Oct 29 15:31:47 2003
+++ ssl_broker.erl Wed Oct 29 15:32:50 2003
_at__at_ -330,6 +330,8 _at__at_
case gen_tcp:recv(St#st.proxysock, Length, Timeout) of
{ok, Data} ->
{reply, {ok, Data}, St};
+ {error, timeout} ->
+ {reply, {error, timeout}, St};
{error, Reason} ->
{reply, {error, Reason}, St#st{status = closing}}
end



Post generated using Mail2Forum (http://m2f.sourceforge.net)

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