mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
* 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:
parent
1a015a3cf9
commit
6309f41b9a
@ -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
|
||||
|
@ -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())]).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user