* src/ejabberd_app.erl: Try to load tls_drv at startup to avoid

unloading of libssl (thanks to Brian Campbell)

SVN Revision: 425
This commit is contained in:
Alexey Shchepin 2005-10-21 21:22:00 +00:00
parent 1a015a3cf9
commit 6309f41b9a
2 changed files with 6 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2005-10-22 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_app.erl: Try to load tls_drv at startup to avoid
unloading of libssl (thanks to Brian Campbell)
2005-10-20 Alexey Shchepin <alexey@sevcom.net>
* src/odbc/pg.sql: Added spool.seq field for offline messages

View File

@ -14,8 +14,6 @@
-export([start/2, stop/1, init/0]).
-export([dump_ports/0]).
-include("ejabberd.hrl").
start(normal, _Args) ->
@ -64,7 +62,7 @@ init() ->
end
end,
error_logger:add_report_handler(ejabberd_logger_h, LogPath),
%timer:apply_interval(3600000, ?MODULE, dump_ports, []),
erl_ddll:load_driver(ejabberd:get_so_path(), tls_drv),
ok = erl_ddll:load_driver(ejabberd:get_so_path(), expat_erl),
Port = open_port({spawn, expat_erl}, [binary]),
loop(Port).
@ -100,8 +98,3 @@ load_modules() ->
end
end, ?MYHOSTS).
dump_ports() ->
?INFO_MSG("ports:~n ~p",
[lists:map(fun(P) -> erlang:port_info(P) end, erlang:ports())]).