Commit Graph

263 Commits (eeb98faa3a09ab9bdfeaa8ed9d2ff3d1d3a94de9)

Author SHA1 Message Date
Matthew Wild 5586351c7e s2smanager: Fix syntax error) 17 years ago
Matthew Wild 5ca850a51c s2smanager: require_s2s_encryption -> s2s_require_encryption 17 years ago
Matthew Wild 4a7e2575df s2smanager: Make require_s2s_encryption do what it says on the tin 17 years ago
Matthew Wild 74ceb83cca s2smanager: Whitespace 17 years ago
Matthew Wild 952317223d s2smanager: Log error and fail gracefully if we can't open a socket for an outgoing s2s connection (thanks foucault) 17 years ago
Matthew Wild c29137a1b1 s2smanager: No-one noticed that Prosody stopped sending to/from on stream headers recently? :) 17 years ago
Matthew Wild 0b4f0121a1 s2smanager: Fix syntax error) 17 years ago
Matthew Wild 54f4000c5a s2smanager: require_s2s_encryption -> s2s_require_encryption 17 years ago
Matthew Wild d169b18350 s2smanager: Make require_s2s_encryption do what it says on the tin 17 years ago
Matthew Wild 0d8ce51b78 s2smanager: Split sending of stream header into a :open_stream() method 17 years ago
Matthew Wild 801cc75c57 s2smanager: Allow new_outgoing() to create sessions without automatically connecting them (set 3rd parameters to false) 17 years ago
Paul Aurich 92b2d54b4b s2smanager: Stamp a 'to' on the reply stream:stream. This makes prosody happy. 17 years ago
Paul Aurich b67695c401 s2smanager: Stamp a 'to' on the reply stream:stream. This makes prosody happy. 17 years ago
Matthew Wild 4b75f2857c s2smanager, hostmanager: Make dialback secrets per-host 17 years ago
Matthew Wild cddb59f542 s2smanager: Trim trailing whitespace 17 years ago
Matthew Wild 5226f7e43a s2smanager: Give reasons to destroy_session in more cases, including when DNS lookup fails 17 years ago
Matthew Wild 90a4059638 s2smanager: Give reasons to destroy_session in more cases, including when DNS lookup fails 17 years ago
Matthew Wild 8c41e63005 s2smanager: Send reply stream header only after checking we serve this host (sorry darkrain... :) ) 17 years ago
Matthew Wild 6aaad6c768 Backed out changeset 78c5cb163ea9, to fix another way. Haven't done this for a while :) 17 years ago
Matthew Wild 851ac94df2 s2smanager: More whitespace 17 years ago
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) 17 years ago
Matthew Wild 8f271c3a7e s2smanager: Whitespace 17 years ago
Matthew Wild e394e2f222 s2smanager: Have both destroy_session and bounce_sendq accept a reason string to include in bounced stanzas 17 years ago
Matthew Wild a50ea05d63 s2smanager: Send reply stream header only after checking we serve this host (sorry darkrain... :) ) 17 years ago
Matthew Wild 07bddf1ea6 s2smanager: Have both destroy_session and bounce_sendq accept a reason string to include in bounced stanzas 17 years ago
Matthew Wild fb4bbe19bf s2smanager: Allow configuration of the dialback_secret in the config 17 years ago
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) 17 years ago
Matthew Wild a1efb7e142 s2smanager: Fix syntax error introduced in merge 17 years ago
Matthew Wild 8da42f8d71 s2smanager: Update for new net.server API (s2s still doesn't work with libevent for other reasons) 17 years ago
Matthew Wild c3ed7fbfce s2smanager: Don't log full stanza when sending outwards 17 years ago
Matthew Wild cd82ebe27d s2smanager: Don't tostring() the data before sending, sends2s already does this. 17 years ago
Matthew Wild 38dc47caae s2smanager: Don't tostring() the data before sending, sends2s already does this. 17 years ago
Matthew Wild 4a592b5069 sessionmanager, s2smanager: Fix for syntax of null_data_handler() (thanks Nolan) 17 years ago
Matthew Wild 2739ed3948 sessionmanager, s2smanager: Give sessions dummy data handlers that log when data is received by a destroyed session 17 years ago
Matthew Wild 4ffd18797a s2smanager: Fail outgoing s2s connection if hostname does not pass idna_to_ascii(), thanks Flo + waqas 17 years ago
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. 17 years ago
Matthew Wild 48879b4b0d s2smanager: Use session-specific logger to log outgoing data on outgoing s2s connections 17 years ago
Matthew Wild 5a0637e9e0 s2smanager: Add incoming_s2s to the prosody object 17 years ago
Matthew Wild 9167a96cfb s2smanager: Fix access of 'config' global without requiring configmanager 17 years ago
Matthew Wild 956a8c6ff5 s2smanager: Make s2s-stream-features a per-host event 17 years ago
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) 17 years ago
Matthew Wild d1c758cdfc s2smanager: Improve log message on missing to/from in stream header 17 years ago
Matthew Wild 1930de3de8 s2smanager: Mark session as secure if it was negotiating TLS and opens a new stream 17 years ago
Paul Aurich 7f7fb4b522 Specify XMPP version on response stream to incoming s2s connection. 17 years ago
Paul Aurich 02d5993f79 Minor changes; outgoing TLS works. 17 years ago
Matthew Wild b3bc4ba406 s2smanager: Small comment 17 years ago
Matthew Wild a49eec3794 s2smanager: Don't wait for stream:features from non-XMPP-1.0 hosts 17 years ago
Matthew Wild ae0f4f94aa s2smanager: Send stream:features for incoming s2s connections which support XMPP 1.0 17 years ago
Matthew Wild 4ad88a506e s2smanager: Give outgoing sessions a host field (the local one) 17 years ago
Matthew Wild f647dddfc8 core.s2smanager: Always use last record in the DNS cache 17 years ago