[erlang-patches] SSL distribution proxy processes must exit when sockets close

Paul Guyot pguyot@REDACTED
Sun Jan 29 16:25:50 CET 2012


Hello,

There is a bug in SSL distribution : the proxy processes do not exit if the sockets close during the setup. Since SSL distribution connections can be very slow to setup, this situation happens to be quite common on a production cluster and can yield to thousands of processes with close messages in their queue.

The following patch, based on maint branch, fixes this bug by simply exiting when a close message is received during setup.

https://github.com/pguyot/otp/compare/fix-ssl_tls_dist_proxy-setup-loop
git fetch git://github.com/pguyot/otp.git fix-ssl_tls_dist_proxy-setup-loop

Paul
-- 
Semiocast            http://semiocast.com/
+33.183627948 - 20 rue Lacaze, 75014 Paris




More information about the erlang-patches mailing list