Commit graph

279 commits

Author SHA1 Message Date
Matthew Wild
6aaad6c768 Backed out changeset 78c5cb163ea9, to fix another way. Haven't done this for a while :) 2009-12-17 21:33:35 +00:00
Matthew Wild
851ac94df2 s2smanager: More whitespace 2009-12-17 21:18:02 +00:00
Matthew Wild
f81d945625 s2smanager: Mark stream as opened sooner, this prevents a duplicated stream header on host-unknown errors (thanks darkrain and his mail server) 2009-12-17 21:17:47 +00:00
Matthew Wild
8f271c3a7e s2smanager: Whitespace 2009-12-17 21:14:44 +00:00
Matthew Wild
e394e2f222 s2smanager: Have both destroy_session and bounce_sendq accept a reason string to include in bounced stanzas 2009-12-17 18:59:29 +00:00
Matthew Wild
a50ea05d63 s2smanager: Send reply stream header only after checking we serve this host (sorry darkrain... :) ) 2009-12-17 21:36:31 +00:00
Matthew Wild
07bddf1ea6 s2smanager: Have both destroy_session and bounce_sendq accept a reason string to include in bounced stanzas 2009-12-17 18:59:29 +00:00
Matthew Wild
fb4bbe19bf s2smanager: Allow configuration of the dialback_secret in the config 2009-11-26 17:17:54 +00:00
Matthew Wild
fc220d6217 Merge with 0.6 2009-11-25 03:30:41 +00:00
Matthew Wild
c4742ed781 s2smanager: Log warning when trying to send a stanza from a host we don't serve, instead of a traceback (thanks stpeter) 2009-11-25 03:30:00 +00:00
Matthew Wild
a1efb7e142 s2smanager: Fix syntax error introduced in merge 2009-11-22 04:53:02 +00:00
Matthew Wild
6ff5582acc Merge with trunk 2009-11-22 04:50:42 +00:00
Matthew Wild
8da42f8d71 s2smanager: Update for new net.server API (s2s still doesn't work with libevent for other reasons) 2009-11-22 04:42:03 +00:00
Matthew Wild
c3ed7fbfce s2smanager: Don't log full stanza when sending outwards 2009-11-21 13:49:48 +00:00
Matthew Wild
cd82ebe27d s2smanager: Don't tostring() the data before sending, sends2s already does this. 2009-11-21 13:47:45 +00:00
Matthew Wild
38dc47caae s2smanager: Don't tostring() the data before sending, sends2s already does this. 2009-11-21 13:47:45 +00:00
Matthew Wild
4a592b5069 sessionmanager, s2smanager: Fix for syntax of null_data_handler() (thanks Nolan) 2010-02-12 17:27:53 +00:00
Matthew Wild
2739ed3948 sessionmanager, s2smanager: Give sessions dummy data handlers that log when data is received by a destroyed session 2010-02-12 17:14:54 +00:00
Matthew Wild
4ffd18797a s2smanager: Fail outgoing s2s connection if hostname does not pass idna_to_ascii(), thanks Flo + waqas 2009-11-20 15:07:39 +00:00
Matthew Wild
9d6d5c3913 s2smanager: Queue db:verify unless we already sent a db:result (if we had then it can could a dialback deadlock). Also remove some redundant code which could cause a db:result to be sent while still negotiating features (e.g. TLS) and break things. Collectively these fix a 'random' s2s failure (usually with ejabberd for some reason) - resulting in an 'unbound prefix' XML error, or 'ssl handshake failure'. Was this commit message long enough? I think so. 2009-11-20 04:39:54 +00:00
Matthew Wild
48879b4b0d s2smanager: Use session-specific logger to log outgoing data on outgoing s2s connections 2009-10-18 16:16:27 +01:00
Matthew Wild
5a0637e9e0 s2smanager: Add incoming_s2s to the prosody object 2009-10-17 15:25:30 +01:00
Matthew Wild
9167a96cfb s2smanager: Fix access of 'config' global without requiring configmanager 2009-10-16 22:19:20 +01:00
Matthew Wild
956a8c6ff5 s2smanager: Make s2s-stream-features a per-host event 2009-10-08 23:40:54 +01:00
Matthew Wild
33f7956500 s2smanager: Don't send version=1.0 in reply to incoming stream tag if they didn't advertise 1.0 (makes happy some old ejabberd versions) 2009-10-06 15:02:16 +01:00
Matthew Wild
d1c758cdfc s2smanager: Improve log message on missing to/from in stream header 2009-10-06 11:02:33 +01:00
Matthew Wild
1930de3de8 s2smanager: Mark session as secure if it was negotiating TLS and opens a new stream 2009-10-05 14:50:27 +01:00
Paul Aurich
7f7fb4b522 Specify XMPP version on response stream to incoming s2s connection. 2009-10-03 23:23:00 -07:00
Paul Aurich
02d5993f79 Minor changes; outgoing TLS works. 2009-10-03 19:20:20 -07:00
Matthew Wild
b3bc4ba406 s2smanager: Small comment 2009-10-04 16:40:24 +01:00
Matthew Wild
a49eec3794 s2smanager: Don't wait for stream:features from non-XMPP-1.0 hosts 2009-10-04 16:39:57 +01:00
Matthew Wild
ae0f4f94aa s2smanager: Send stream:features for incoming s2s connections which support XMPP 1.0 2009-10-04 16:38:33 +01:00
Matthew Wild
4ad88a506e s2smanager: Give outgoing sessions a host field (the local one) 2009-10-04 16:34:17 +01:00
Matthew Wild
adca883cc3 Merge with 0.5 2009-09-27 12:26:51 +01:00
Matthew Wild
f647dddfc8 core.s2smanager: Always use last record in the DNS cache 2009-09-27 11:59:11 +01:00
Matthew Wild
3f47ff7634 Merge with 0.5 2009-09-21 14:42:29 +01:00
Matthew Wild
46e4ac25f4 core.s2smanager: Don't recurse CNAMEs infinitely :) 2009-09-21 14:40:14 +01:00
Matthew Wild
d989c5e4e9 Merge with 0.5 2009-09-20 15:17:37 +01:00
Matthew Wild
51aec63307 s2smanager: Timeout unauthed s2s connections 2009-09-20 15:16:25 +01:00
Matthew Wild
1c92cd5b14 Merge with 0.5 2009-09-19 17:48:15 +01:00
Matthew Wild
711ad31a2a s2smanager: Compatibility with domains which use CNAMEs 2009-09-19 17:47:26 +01:00
Matthew Wild
818bece2e6 Merge with 0.5 2009-09-19 17:42:16 +01:00
Matthew Wild
44ea588e98 s2smanager: Pass A-record lookups through adns module 2009-09-19 17:40:19 +01:00
Matthew Wild
b5d5ab2446 core.s2smanager, xmppserver_listener: Move the responsibility of setting session.log from the latter to the former for incoming sessions (outgoing are already like this) 2009-08-16 21:41:53 +01:00
Matthew Wild
118883d655 Remove version number from copyright headers 2009-07-10 03:11:45 +01:00
Matthew Wild
25c8f0ffa4 s2smanager: Fix to correctly bounce stanzas if first connection attempt fails instantly 2009-07-08 03:14:12 +01:00
Matthew Wild
0bee1c3195 s2smanager: Log the hostname and address when s2s connection fails instantly 2009-07-03 14:58:11 +01:00
Matthew Wild
3dc21c4fc7 Send xml:lang in stream headers, fixes #78 2009-07-01 17:53:18 +01:00
Matthew Wild
cd970ddf0d s2smanager: Remove srv_hosts from session when connected, this fixes attempting to reconnect s2s sessions when they are closed during shutdown 2009-06-19 17:27:03 +01:00
Waqas Hussain
6028056446 s2smanager: Use a UUID as the dialback secret 2009-06-04 21:12:36 +05:00