Commit graph

21 commits

Author SHA1 Message Date
Kim Alvefur
3e2a8fbe1c prosody, mod_c2s, mod_s2s: Move closing of c2s and s2s sessions to respective plugins 2012-12-28 14:33:47 +01:00
Matthew Wild
b9ac1b8b07 mod_s2s: Remove connection from sessions table as soon as we learn it is disconnected. Fixes a connection/session leak. 2012-12-28 12:47:44 +00:00
Kim Alvefur
b7219c57f4 mod_s2s: Detect TLS compression 2012-10-24 19:05:56 +02:00
Waqas Hussain
d9d38ef125 mod_{admin_telnet,c2s,component,http,net_multiplex,s2s}: Use module:provides() instead of module:add_item(). 2012-09-12 22:22:31 +05:00
Kim Alvefur
9114e88ee0 mod_admin_adhoc, mod_admin_telnet, mod_bosh, mod_c2s, mod_component, mod_pep, mod_presence, mod_roster, mod_s2s: Import core_post_stanza from the global prosody table. 2012-07-26 04:33:17 +02:00
Matthew Wild
be56306272 mod_s2s: Bump s2s_timeout to 90, to allow for the TCP timeout (in most cases) - this allows us to continue to try other targets 2012-07-23 18:57:28 +01:00
Matthew Wild
9931497619 mod_c2s, mod_s2s: Lower 'Disconnecting X' log messages from 'info' to 'debug' 2012-07-23 18:28:14 +01:00
Matthew Wild
e89b006f03 Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages 2012-07-23 17:32:33 +01:00
Matthew Wild
0771b51658 mod_s2s: Adjust session:close() in line with mod_c2s's - fixes waiting for </stream:stream> if it has already been sent by the peer 2012-07-23 13:31:26 +01:00
Matthew Wild
6aa575f09b mod_s2s: Don't call ondisconnect manually, don't call conn:close() 3 times (!) and merge its logic and streamdisconnected into session_close - including now waiting for a reply </stream:stream> if there is the chance of further stanzas requiring delivery arriving. session.sends2s() on a half-closed stream returns false. 2012-07-22 17:07:21 +01:00
Matthew Wild
900a0add21 mod_s2s: Don't treat a stanza as delivered if session.sends2s() returns false 2012-07-22 17:04:02 +01:00
Matthew Wild
2057401904 mod_s2s: Make unauthed session timeout a little more aggressive... otherwise it's possible for sessions to slip under the net and never get killed off 2012-07-22 16:45:27 +01:00
Matthew Wild
81cbf8c7d4 mod_s2s, s2sout.lib: Send stream header in onconnect() 2012-05-24 03:08:42 +01:00
Matthew Wild
417defb2ed mod_s2s: Only try next target if the stream didn't open 2012-05-13 16:03:05 +01:00
Matthew Wild
4a958b8611 mod_s2s: Remove TODO comment for SASL/TLS on s2s (thanks Florob) 2012-05-11 02:17:20 +01:00
Matthew Wild
0b4567a6f1 mod_s2s, mod_auth_anonymous, hostmanager: Remove disallow_s2s flag, deprecate the config option of the same name (disable mod_s2s instead), and add 'allow_anonymous_s2s' to separately control s2s for anonymous users 2012-05-11 00:56:18 +01:00
Matthew Wild
75d9d9e997 mod_s2s, s2smanager, mod_dialback: Move addition of session.send() on s2sin to after they are authenticated (thus from mod_s2s to s2smanager). Update mod_dialback to fire route/remote directly, as session.send() is no longer available for s2sin_unauthed. Fixes #291. 2012-05-10 22:59:01 +01:00
Matthew Wild
8128ac8052 mod_s2s: Cache to_host and from_host in local variables, and use these instead of repeated lookups 2012-05-04 02:27:26 +01:00
Matthew Wild
706676c19a mod_s2s: Add session.send() only to incoming streams, and fire the route/remote event on the host (not global anymore) 2012-05-04 02:22:26 +01:00
Matthew Wild
9a9ff378e9 mod_s2s: Become a shared module (yay) 2012-05-04 01:50:17 +01:00
Matthew Wild
d18c1ff0da Rename plugins/s2s/ to plugins/mod_s2s/ 2012-05-04 00:05:15 +01:00
Renamed from plugins/s2s/mod_s2s.lua (Browse further)