Commit graph

278 commits

Author SHA1 Message Date
Matthew Wild
7804582f2a s2smanager: Only send reply </stream:stream> when connection is still open 2009-05-26 01:07:52 +01:00
Matthew Wild
8f3b27b822 s2smanager: Miscellaneous logging improvements, changing levels, improving messages and using session loggers where possible 2009-04-30 02:43:12 +01:00
Matthew Wild
7b9dbf5747 core.s2smanager: Buffer data sent before connection 2009-04-20 22:14:31 +01:00
Matthew Wild
27ef148e70 core.s2smanager: Logging improvements 2009-04-20 22:13:09 +01:00
Matthew Wild
13db2a926b core.s2smanager: Don't initiate dialback if we don't have a connection yet 2009-04-12 13:14:45 +01:00
Matthew Wild
e99f46bcda Remove more debugging code which was accidentally committed (don't trust hg) 2009-04-10 10:38:04 +01:00
Matthew Wild
d95e52160f core.s2smanager: Remove some debugging 2009-04-10 10:36:01 +01:00
Matthew Wild
8ba629387a Merge 2009-04-10 10:31:38 +01:00
Matthew Wild
493839e2ac core.s2smanager: Look away... wait for it... now! Hopefully s2s should be back to normal. 2009-04-08 20:01:53 +01:00
Matthew Wild
12c59fd50c core.s2smanager: Check for valid host and port before attempting connection 2009-04-06 23:43:48 +01:00
Matthew Wild
a27b839551 sessionmanager, s2smanager, mod_component: Send reply </stream:stream> when client closes stream 2009-04-05 20:06:39 +01:00
Waqas Hussain
2365831f7d Fixed: Some nil access bugs 2009-03-30 05:26:10 +05:00
Waqas Hussain
985a40227e Fixed: s2smanager: Apply nameprep on hostnames passed in stream tag (part of issue #57) 2009-03-30 03:06:01 +05:00
Matthew Wild
c80f91dc02 0.3->0.4 2009-03-20 20:16:25 +00:00
Matthew Wild
1a7a72a9f6 core.s2smanager: Remove some old commented code, break a long line in 2 2009-03-02 13:52:08 +00:00
Matthew Wild
c5ee166aa9 Update copyright notices for 2009 2009-01-30 17:59:26 +00:00
Matthew Wild
f2d020191f 0.2->0.3 2009-01-30 17:40:25 +00:00
Matthew Wild
bf3b96204d GPL->MIT! 2009-01-30 17:22:56 +00:00
Matthew Wild
c0dbcb4389 Port to new server.lua, quite some changes, but I believe everything to be working 2009-01-17 04:45:08 +00:00
Waqas Hussain
b6e1405a9a Bounce stanza errors on failed s2s 2008-12-19 01:57:13 +05:00
Matthew Wild
2e83fd69f7 Add support for dialback piggy-backing. Fixes #37. Thanks to CShadowRun for helping me test :) 2008-12-13 17:43:52 +00:00
Matthew Wild
d3ad4a5123 0.1 -> 0.2 2008-12-10 15:44:03 +00:00
Matthew Wild
2b0083790b Slightly more secure dialback secret generation 2008-12-07 03:12:22 +00:00
Matthew Wild
b3e9fc629c Remove print()s from sessionmanager and s2smanager 2008-12-06 23:14:39 +00:00
Matthew Wild
7c9f4818c3 Remove an incorrect line which I didn't add, and fix the proper way. Corrects the sending of stanzas over unauthed s2sout's. Also fixes mod_dialback to send stanzas and not strings. 2008-12-05 05:23:42 +00:00
Matthew Wild
ffd2676218 Fix for s2s with jabberd2 (we weren't routing db:verify's over s2sout_unauthed) 2008-12-05 04:44:19 +00:00
Matthew Wild
533449b6d2 Don't send stream:features to incoming s2s connections 2008-12-04 17:10:02 +00:00
Matthew Wild
bf3bb39ea3 Fix logger ids for c2s and s2sout 2008-12-04 16:41:32 +00:00
Matthew Wild
0c5cc83112 Insert copyright/license headers 2008-12-03 14:39:07 +00:00
Matthew Wild
77c094c25a No more reading 1 byte at a time from sockets 2008-11-28 00:08:23 +00:00
Waqas Hussain
85a3bc3443 Switched from md5 to sha256 for dialback key generation 2008-11-28 01:13:34 +05:00
Matthew Wild
7d402ac968 Log reason for connection failure 2008-11-26 23:47:23 +00:00
Matthew Wild
fba46bce30 (Basic) IDNA and SRV fallback support 2008-11-26 23:44:30 +00:00
Matthew Wild
5efcee9d4d Remove or comment useless prints, or change them to log() 2008-11-20 03:00:43 +00:00
Matthew Wild
5748442766 Remove version=1.0 on s2s stream headers, again. 2008-11-20 01:14:31 +00:00
Matthew Wild
2cad7943e5 Remove an old FIXME comment 2008-11-19 23:25:04 +00:00
Matthew Wild
5a46bff5b2 Comments and logging fixes 2008-11-19 22:50:37 +00:00
Matthew Wild
093c9c9fa0 Send version=1.0 again in s2s stream header 2008-11-19 22:05:44 +00:00
Matthew Wild
dd6a298f93 Fix for setting the correct host on the socket, seems to fix s2s with XCP 2008-11-19 22:04:39 +00:00
Matthew Wild
43c5342160 Don't send version 1.0. Who cares about Gmail? 2008-11-19 05:34:00 +00:00
Matthew Wild
b27c563266 Send version=1.0 in s2s stream header. Send s2s stream:features when in 1.0 mode. 2008-11-19 05:13:07 +00:00
Matthew Wild
9ab64fc855 Don't attempt to auth connection unless stanzas are being sent across it 2008-11-19 05:12:21 +00:00
Matthew Wild
f1966ba5b7 Log sent s2s stanzas 2008-11-19 05:11:37 +00:00
Matthew Wild
801e99fcbb We have SRV resolving \o/ 2008-11-18 22:41:04 +00:00
Matthew Wild
99b617b8b6 session:disconnect() -> session:close() for consistency with other Lua APIs 2008-11-18 19:44:54 +00:00
Matthew Wild
01c770997f Quite some changes, to:
- Small logging fix for s2smanager
- Send a stream error if an incoming s2s connection is to an unrecognised hostname (fixes #11)
- init_xmlhandlers now takes a table of callbacks (includes changes to net/xmpp*_listener for this)
- Move sending of unavailable presence to where it should be, sessionmanager.destroy_session
- Fix sending of stream errors to wrong connection
2008-11-18 17:52:33 +00:00
Waqas Hussain
7c92b4e9a1 Fixed s2s manager's send queue to not store recieved stanza objects (as these can chnage after the send call) 2008-11-17 18:53:13 +05:00
Waqas Hussain
9318711f5f Log how many queued stanzas we send 2008-11-15 08:38:25 +05:00
Matthew Wild
1c704dcef7 Update hostname for identi.ca 2008-11-14 20:30:24 +00:00
Matthew Wild
b06c5faec4 Remove some old unused (and empty) functions from s2smanager 2008-11-14 18:54:19 +00:00