Deadlock bug in ssl library

Inswitch Solutions erlang@REDACTED
Fri Aug 26 16:44:00 CEST 2005


Hi,

Which OS are you using?
Some time ago I have had problems with the SSL port (ssl_esock) with Yaws in Win32 and when sending data to the server. Perhaps it's related with yours.
By increasing the buffer size of the C/C++ port and with some other changes I've managed to work it out for small size data uploads.  There're some postings in the list with the changes I made.

Hope it helps.

regards, Eduardo
     Prepaid Expertise - Programmable Switches 
      Powered by Ericsson Licensed Technology
      Eng. Eduardo Figoli - Development Center - IN Switch Solutions Inc.
      Headquarters - Miami-U.S.A. Tel: 1305-3578076 Fax: 1305-7686260
      Development Center - Montevideo - Uruguay Tel/Fax: 5982-7104457
      e-mail: eduardo@REDACTED

     

 


----- Original Message ----- 
From: <mbj@REDACTED>
To: <erlang-patches@REDACTED>; <erlang-questions@REDACTED>
Sent: Friday, August 26, 2005 11:15 AM
Subject: Re: Deadlock bug in ssl library


> Here's a small program to reproduce the problem
> 
> 
> -module(s).
> -compile(export_all).
> 
> %% illustrates ssl deadlock problem
> 
> %% do  s:d() in an erlang shell
> %% in a terminal shell, do 
> %%     openssl s_client -connect localhost:5432 < a-1-MB-file
> 
> 
> d() ->
>     application:start(ssl),
>     {ok, L} =
> ssl:listen(5432,
>    [{active, false},
>     {certfile, "/home/share/mbj/src/yaws/ssl/cert.example"},
>     {keyfile, "/home/share/mbj/src/yaws/ssl/key.example"}]),
>     {ok, S} = ssl:accept(L),
>     {ok, Data} = ssl:recv(S, 0),
>     io:format("got ~p bytes\n", [length(Data)]),
>     timer:sleep(10000),
>     {ok, PeerName} = ssl:peername(S),
>     io:format("peername: ~p\n", [PeerName]),
>     ssl:close(S),
>     ssl:close(L).
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20050826/ee91ad7a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 1429 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20050826/ee91ad7a/attachment.gif>


More information about the erlang-questions mailing list