[erlang-bugs] [erlang-questions] Process/FD leak in SSL R15B01

Matthias Radestock matthias@REDACTED
Wed Oct 24 11:49:50 CEST 2012


Ingela,

On 24/10/12 10:24, Ingela Anderton Andin wrote:
> Anyway I have a theory that perhaps the inet driver can hang
> if you try to do recv on a socket that has been shutdown for
> writing from the other side or maybe some strange race condition.
> I have no evidence that this is so, for now I just think it fits the
> scenario of what seems to happen.
>
> I think that ssl should have a new terminate clause that
> avoids doing socket operations that are logically not necessary, even if
> it can be considered a bug that the inet driver hangs.

The following code & explanation from RabbitMQ might be pertinent:

http://hg.rabbitmq.com/rabbitmq-server/file/518a3f494190/src/rabbit_net.erl#l153

Regards,

Matthias.



More information about the erlang-bugs mailing list