aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-12 01:38:40 +0200
committerKim Alvefur <zash@zash.se>2016-08-12 01:38:40 +0200
commitef3f3b099fd0e7b0a7ac2705523ad719ce8a0a33 (patch)
treef195008c54885a0d282d1eadf2139ddaf643774b /plugins
parent64e565546890b709a23ce3d3077e69d7822a6703 (diff)
downloadprosody-ef3f3b099fd0e7b0a7ac2705523ad719ce8a0a33.tar.gz
prosody-ef3f3b099fd0e7b0a7ac2705523ad719ce8a0a33.zip
mod_s2s: Set read mode for s2sout sockets to the same as s2sins
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_s2s/s2sout.lib.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_s2s/s2sout.lib.lua b/plugins/mod_s2s/s2sout.lib.lua
index 42413164..1038a616 100644
--- a/plugins/mod_s2s/s2sout.lib.lua
+++ b/plugins/mod_s2s/s2sout.lib.lua
@@ -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