[erlang-patches] R11B SSL patch
Ingela Anderton Andin
ingela@REDACTED
Mon Jul 28 14:14:24 CEST 2008
Hi,
thank you for the patch. I have created a ticket for this and we will
try it out when we can find some time for it. However we are in the
process of
making a new ssl-implementation in erlang that will replace the
ssl-driver version as soon as it is complete enough. A trail-version is
already available in R12B
but it does not yet support all necessary features and ssl/tls versions
to replace the old ssl.
Regards - Ingela, Erlang/OTP Ericsson
Oscar Hellström wrote:
> Hi,
>
> I've noticed quite a few problems with the SSL driver exiting after
> printing "esock: Got connect request while PASSIVE". This is probably
> more easily triggered when the ssl:accept/2 is called with a timeout
> in a loop (since I suspect that it then sends the NOACCEPT command to
> the port quite often).
>
> My suspicion is that if a connection attempt have been received, and
> polled from the listener socket, when the is an ESOCK_NOACCEPT_CMD
> waiting we'll end up receiving the connect event in
> ESOCK_PASSIVE_LISTENING further down in the loop. I don't quite
> understand why we need to exit whenever we poll a connection on a
> listener socket in ESOCK_PASSIVE_LISTENING state, but I guess it's
> because there shouldn't be an event there. To avoid this I've added a
> function to the esock_poll.c which can clear events for the fd in
> question. This should avoid the driver exiting with the "esock: Got
> connect request while PASSIVE" message and thus taking down all the
> SSL connections.
>
> Please note that this has ONLY been tested with the poll interface and
> not even complied with select.
>
> There has also been two emails describing this problem:
> http://www.erlang.org/pipermail/erlang-questions/2006-September/022755.html
> http://www.erlang.org/pipermail/erlang-bugs/2008-June/000829.html
> ------------------------------------------------------------------------
>
> _______________________________________________
> erlang-patches mailing list
> erlang-patches@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-patches
More information about the erlang-patches
mailing list