Strange behaviour with SSL

Peter H|gfeldt peter@REDACTED
Thu May 31 20:52:59 CEST 2001



On Thu, 31 May 2001, Marcus Shawcroft wrote:

> Hi.
> Ive got R7B-2 on a Redhat 7.1 intel box. The following test code:
> 
> test () ->
>     ssl:start (),
>     {ok,S} = ssl:listen (5044, []),
>     ssl:accept (S).
> 
> returns {error, ebadf}
> 
> which isnt what I had expected......
> 
> I turned debugging on in the ssl application and noted that the
> ssl_esock program was complaining
> [ERROR_ACCEPT= fd = 5, flags =
> ERROR: flags empty
> 
> 
> Is this a known problem, and is there a fix?

Yes, have at least one option in listen(Port, Options) :-). 

The error code is indeed quite cryptic in this case, but the idea is that
not providing any options at all to listen/2, will eventually result in an
error.

/Peter

-------------------------------------------------------------------------
Peter Högfeldt			e-mail  : peter@REDACTED
Open Telecom Platform
Ericsson Utvecklings AB



More information about the erlang-questions mailing list