Changeset

7562:bc40f6d626a0

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Fri, 12 Aug 2016 01:38:47 +0200
parents 7560:785fa1138293 (current diff) 7561:ab8324d3b899 (diff)
children 7563:71dc0d89a9b8
files
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_s2s/s2sout.lib.lua	Fri Aug 12 01:13:26 2016 +0200
+++ b/plugins/mod_s2s/s2sout.lib.lua	Fri Aug 12 01:38:47 2016 +0200
@@ -22,6 +22,8 @@
 
 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 @@
 		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