diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-11-28 00:08:23 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-11-28 00:08:23 +0000 |
commit | 77c094c25a133609d7b30b748d62f4e9a78775b5 (patch) | |
tree | 765c4df72c8bcc1ff9c47912f56f91b83c423f8c | |
parent | efd0ef64bb4cbf51ecbd51280b4cf42d7f6e6ed8 (diff) | |
download | prosody-77c094c25a133609d7b30b748d62f4e9a78775b5.tar.gz prosody-77c094c25a133609d7b30b748d62f4e9a78775b5.zip |
No more reading 1 byte at a time from sockets
-rw-r--r-- | core/s2smanager.lua | 2 | ||||
-rw-r--r-- | net/xmppclient_listener.lua | 2 | ||||
-rw-r--r-- | net/xmppserver_listener.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 1cd40aa8..80e68ccc 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -143,7 +143,7 @@ function attempt_connection(host_session, err) end local cl = connlisteners_get("xmppserver"); - conn = wraptlsclient(cl, conn, connect_host, connect_port, 0, 1, hosts[from_host].ssl_ctx ); + conn = wraptlsclient(cl, conn, connect_host, connect_port, 0, cl.default_mode or 1, hosts[from_host].ssl_ctx ); host_session.conn = conn; -- Register this outgoing connection so that xmppserver_listener knows about it diff --git a/net/xmppclient_listener.lua b/net/xmppclient_listener.lua index 0f5511b4..369860e2 100644 --- a/net/xmppclient_listener.lua +++ b/net/xmppclient_listener.lua @@ -19,7 +19,7 @@ local st = stanza; local stream_callbacks = { streamopened = sm_streamopened, streamclosed = sm_streamclosed }; local sessions = {}; -local xmppclient = { default_port = 5222 }; +local xmppclient = { default_port = 5222, default_mode = "*a" }; -- These are session methods -- diff --git a/net/xmppserver_listener.lua b/net/xmppserver_listener.lua index cd9a3460..3364f90b 100644 --- a/net/xmppserver_listener.lua +++ b/net/xmppserver_listener.lua @@ -21,7 +21,7 @@ local sm_new_session, sm_destroy_session = sessionmanager.new_session, sessionma local st = stanza; local sessions = {}; -local xmppserver = { default_port = 5269 }; +local xmppserver = { default_port = 5269, default_mode = "*a" }; -- These are session methods -- |