[erlang-questions] Re: ssl and {active, once} - bug?

Roberto Ostinelli roberto@REDACTED
Tue Apr 20 18:15:58 CEST 2010


> 1.
> in https mode [ssl:transport_accept/1 + ssl:ssl_accept/1], if i
> receive a http request, i get a {error, closed} message, i.e. a socket
> is not created, thus the browser timeouts waiting for a response.
>
> 2.
> in http mode [gen_tcp:accept/1], if i receive a https request then i get a
> {http, Sock, {http_error, [22,3,1,0,157,1,0,0, ......]}} message, i.e.
> the socket is created but the data is not understood.

my bad, in situation 1 nothing happens, there's no {error, closed}
message received.

question still remains: what is the best way to handle this?

r.


More information about the erlang-questions mailing list