From alexey@REDACTED Wed Oct 29 15:03:49 2003 From: alexey@REDACTED (Alexey Shchepin) Date: Wed, 29 Oct 2003 16:03:49 +0200 Subject: Bug in R9C SSL Message-ID: <87ad7k16pm.fsf@office.sevcom.net> 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 @@ -330,6 +330,8 @@ 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