mirror of
https://github.com/bjc/prosody.git
synced 2025-04-07 07:07:38 +03:00
mod_s2s: Set read mode for s2sout sockets to the same as s2sins
This commit is contained in:
parent
64e5655468
commit
ef3f3b099f
1 changed files with 3 additions and 1 deletions
|
@ -22,6 +22,8 @@ local local_addresses = require "util.net".local_addresses;
|
|||
|
||||
local s2s_destroy_session = require "core.s2smanager".destroy_session;
|
||||
|
||||
local default_mode = module:get_option("network_default_read_size", 4096);
|
||||
|
||||
local log = module._log;
|
||||
|
||||
local sources = {};
|
||||
|
@ -282,7 +284,7 @@ function s2sout.make_connect(host_session, connect_host, connect_port)
|
|||
return false, err;
|
||||
end
|
||||
|
||||
conn = wrapclient(conn, connect_host.addr, connect_port, s2s_listener, "*a");
|
||||
conn = wrapclient(conn, connect_host.addr, connect_port, s2s_listener, default_mode);
|
||||
host_session.conn = conn;
|
||||
|
||||
-- Register this outgoing connection so that xmppserver_listener knows about it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue