Thanks, I will do that today and respond with results. <div><br></div><div>Dan<br><div><br><div class="gmail_quote">On Tue, Jul 5, 2011 at 8:12 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>
I have not actually pinpointed the problem but I got my test-case to fail on<br>
R14B01 but runs fine on R14B02 and R1B03 and on the main development branch.<br>
Hence upgrade and let me know how it goes.<br>
<div class="im"><br>
Regards Ingela Erlang/OTP team - Ericsson AB<br>
<br>
</div>2011/7/4 Ingela Andin <<a href="mailto:ingela@erlang.org">ingela@erlang.org</a>>:<br>
<div><div></div><div class="h5">> Hi again!<br>
><br>
> 2011/7/4 Daniel Griffin <<a href="mailto:dgriff1@gmail.com">dgriff1@gmail.com</a>>:<br>
>> The twisted python server defaults to accepting SSL 2 or 3. I am using<br>
>> erlang R14B01. Is there some rule saying that you can't have multiple SSL<br>
>> connections between 2 programs?<br>
><br>
> No, it should not be a problem.<br>
><br>
>> What sort of timing issues could I be having?<br>
><br>
> I will investigate tomorrow if there could be some sort of timing<br>
> issue. I am not saying<br>
> there is, I am just saying your description of what is happening<br>
> makes me think of strange timing issues, (even though I can not think<br>
> of a reason there should be sush an isssue at the moment) but I had<br>
> very little to go on. Knowing which version of the code you are<br>
> running makes it easier. If you have the possibility to try the<br>
> latest version of the code or atleast R14B03<br>
> that would be good.<br>
><br>
> Regards Ingela Erlang/OTP team - Ericsson AB<br>
><br>
>> Thanks,<br>
>> Dan<br>
>> On Mon, Jul 4, 2011 at 4:00 AM, Ingela Andin <<a href="mailto:ingela.andin@gmail.com">ingela.andin@gmail.com</a>> wrote:<br>
>>><br>
>>> 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>
>>> > 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<br>
>>> > to<br>
>>> > open connections and the first one opens fine, then the second errors<br>
>>> > 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"},<br>
>>> > {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"},<br>
>>> > {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>
>>> > _______________________________________________<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>
>><br>
>><br>
><br>
</div></div></blockquote></div><br></div></div>