Software /
code /
prosody
Changeset
451:e9f269e5204e
No more reading 1 byte at a time from sockets
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 28 Nov 2008 00:08:23 +0000 |
parents | 450:e04c4052742c |
children | 454:21105a005eef 472:ee45599c0b5d |
files | core/s2smanager.lua net/xmppclient_listener.lua net/xmppserver_listener.lua |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/core/s2smanager.lua Thu Nov 27 23:36:49 2008 +0000 +++ b/core/s2smanager.lua Fri Nov 28 00:08:23 2008 +0000 @@ -143,7 +143,7 @@ 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
--- a/net/xmppclient_listener.lua Thu Nov 27 23:36:49 2008 +0000 +++ b/net/xmppclient_listener.lua Fri Nov 28 00:08:23 2008 +0000 @@ -19,7 +19,7 @@ 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 --
--- a/net/xmppserver_listener.lua Thu Nov 27 23:36:49 2008 +0000 +++ b/net/xmppserver_listener.lua Fri Nov 28 00:08:23 2008 +0000 @@ -21,7 +21,7 @@ local st = stanza; local sessions = {}; -local xmppserver = { default_port = 5269 }; +local xmppserver = { default_port = 5269, default_mode = "*a" }; -- These are session methods --