The twisted python server defaults to accepting SSL 2 or 3. I am using erlang R14B01. Is there some rule saying that you can't have multiple SSL connections between 2 programs? <div><br></div><div>What sort of timing issues could I be having? </div>
<div><br></div><div><br></div><div>Thanks,</div><div>Dan</div><div><br><div class="gmail_quote">On Mon, Jul 4, 2011 at 4:00 AM, Ingela Andin <span dir="ltr"><<a href="mailto:ingela.andin@gmail.com">ingela.andin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi!<br>
<br>
It sounds like you are experiencing some kind of timing problem.<br>
I tried to write a test case to repeat it but I am not getting<br>
any problem. Which ssl-version you are running?<br>
<br>
Regards Ingela Erlang/OTP team - Ericsson AB<br>
<br>
2011/7/2 Daniel Griffin <<a href="mailto:dgriff1@gmail.com">dgriff1@gmail.com</a>>:<br>
<div><div></div><div class="h5">> I am using SSL sockets to talk between an erlang program and a twisted<br>
> python program. Different processes in my erlang app occasionally have to<br>
> open connections and the first one opens fine, then the second errors with<br>
> {error, closed}.<br>
> I don't know if I am misunderstanding something in SSL or Erlang. The<br>
> simplest client code I could come up with is:<br>
> run_test()-><br>
>     ssl:start(),<br>
>     %%% works fine<br>
>     {ok, Conn} = ssl:connect("localhost", 2000, [binary, {packet, 0},<br>
> {keepalive, true}, {active, false}, { certfile, "controller.crt"}, {keyfile,<br>
> "controller.key"} ]),<br>
>     %%% this next one will return {error, closed}<br>
>     {ok, Conn1} = ssl:connect("localhost", 2000, [binary, {packet, 0},<br>
> {keepalive, true}, {active, false}, { certfile, "controller.crt"}, {keyfile,<br>
> "controller.key"} ]).<br>
><br>
> The python side gets the connection both times. Bizarrely, if I retry a<br>
> connection after getting {error, closed} it works.<br>
> Any insight?<br>
> Dan<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
><br>
><br>
</blockquote></div><br></div>