ports/lang/erlang/files/patch-lib_ssl_src_ssl__manager.erl
Jimmy Olgeni b69398fc8c Fix a couple of issues, using patches from erlang-patches:
- When using an async thread pool, terminating a process that uses
the file:open/2 that specify the "compressed" option causes a crash.
(by Filipe David Manana)

- Due to a bug in ssl_manager:clean_cert_db, very time a tcp
connection was upgraded the certificates would be leaked and never
removed from the 'ssl_otp_cacertificate_db' table. (by Daniel Barney)
2013-01-10 14:42:50 +00:00

14 lines
466 B
Erlang

$FreeBSD$
--- lib/ssl/src/ssl_manager.erl.orig
+++ lib/ssl/src/ssl_manager.erl
@@ -145,7 +145,7 @@
call({new_session_id, Port}).
clean_cert_db(Ref, File) ->
- erlang:send_after(?CLEAN_CERT_DB, self(), {clean_cert_db, Ref, File}).
+ erlang:send_after(?CLEAN_CERT_DB, get(ssl_manager), {clean_cert_db, Ref, File}).
%%--------------------------------------------------------------------
-spec register_session(inet:port_number(), #session{}) -> ok.