Commit Graph

132 Commits (a00a7f76bc8bbc8a0174bfda7b7962e981e984df)

Author SHA1 Message Date
Matthew Wild 0d8ce51b78 s2smanager: Split sending of stream header into a :open_stream() method 16 years ago
Matthew Wild 801cc75c57 s2smanager: Allow new_outgoing() to create sessions without automatically connecting them (set 3rd parameters to false) 16 years ago
Paul Aurich b67695c401 s2smanager: Stamp a 'to' on the reply stream:stream. This makes prosody happy. 16 years ago
Matthew Wild 4b75f2857c s2smanager, hostmanager: Make dialback secrets per-host 16 years ago
Matthew Wild cddb59f542 s2smanager: Trim trailing whitespace 16 years ago
Matthew Wild 90a4059638 s2smanager: Give reasons to destroy_session in more cases, including when DNS lookup fails 16 years ago
Matthew Wild 8c41e63005 s2smanager: Send reply stream header only after checking we serve this host (sorry darkrain... :) ) 16 years ago
Matthew Wild 6aaad6c768 Backed out changeset 78c5cb163ea9, to fix another way. Haven't done this for a while :) 16 years ago
Matthew Wild 851ac94df2 s2smanager: More whitespace 16 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) 16 years ago
Matthew Wild 8f271c3a7e s2smanager: Whitespace 16 years ago
Matthew Wild 07bddf1ea6 s2smanager: Have both destroy_session and bounce_sendq accept a reason string to include in bounced stanzas 16 years ago
Matthew Wild fb4bbe19bf s2smanager: Allow configuration of the dialback_secret in the config 16 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) 16 years ago
Matthew Wild a1efb7e142 s2smanager: Fix syntax error introduced in merge 16 years ago
Matthew Wild 8da42f8d71 s2smanager: Update for new net.server API (s2s still doesn't work with libevent for other reasons) 16 years ago
Matthew Wild c3ed7fbfce s2smanager: Don't log full stanza when sending outwards 16 years ago
Matthew Wild 38dc47caae s2smanager: Don't tostring() the data before sending, sends2s already does this. 16 years ago
Matthew Wild 4ffd18797a s2smanager: Fail outgoing s2s connection if hostname does not pass idna_to_ascii(), thanks Flo + waqas 16 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. 16 years ago
Matthew Wild 48879b4b0d s2smanager: Use session-specific logger to log outgoing data on outgoing s2s connections 16 years ago
Matthew Wild 5a0637e9e0 s2smanager: Add incoming_s2s to the prosody object 16 years ago
Matthew Wild 9167a96cfb s2smanager: Fix access of 'config' global without requiring configmanager 16 years ago
Matthew Wild 956a8c6ff5 s2smanager: Make s2s-stream-features a per-host event 16 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) 16 years ago
Matthew Wild d1c758cdfc s2smanager: Improve log message on missing to/from in stream header 16 years ago
Matthew Wild 1930de3de8 s2smanager: Mark session as secure if it was negotiating TLS and opens a new stream 16 years ago
Paul Aurich 7f7fb4b522 Specify XMPP version on response stream to incoming s2s connection. 16 years ago
Paul Aurich 02d5993f79 Minor changes; outgoing TLS works. 16 years ago
Matthew Wild b3bc4ba406 s2smanager: Small comment 16 years ago
Matthew Wild a49eec3794 s2smanager: Don't wait for stream:features from non-XMPP-1.0 hosts 16 years ago
Matthew Wild ae0f4f94aa s2smanager: Send stream:features for incoming s2s connections which support XMPP 1.0 16 years ago
Matthew Wild 4ad88a506e s2smanager: Give outgoing sessions a host field (the local one) 16 years ago
Matthew Wild f647dddfc8 core.s2smanager: Always use last record in the DNS cache 16 years ago
Matthew Wild 46e4ac25f4 core.s2smanager: Don't recurse CNAMEs infinitely :) 17 years ago
Matthew Wild 51aec63307 s2smanager: Timeout unauthed s2s connections 17 years ago
Matthew Wild 711ad31a2a s2smanager: Compatibility with domains which use CNAMEs 17 years ago
Matthew Wild 44ea588e98 s2smanager: Pass A-record lookups through adns module 17 years ago
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) 17 years ago
Matthew Wild 118883d655 Remove version number from copyright headers 17 years ago
Matthew Wild 25c8f0ffa4 s2smanager: Fix to correctly bounce stanzas if first connection attempt fails instantly 17 years ago
Matthew Wild 0bee1c3195 s2smanager: Log the hostname and address when s2s connection fails instantly 17 years ago
Matthew Wild 3dc21c4fc7 Send xml:lang in stream headers, fixes #78 17 years ago
Matthew Wild cd970ddf0d s2smanager: Remove srv_hosts from session when connected, this fixes attempting to reconnect s2s sessions when they are closed during shutdown 17 years ago
Waqas Hussain 6028056446 s2smanager: Use a UUID as the dialback secret 17 years ago
Matthew Wild 0172110483 s2smanager: Timeout DNS requests after 60 seconds (or dns_timeout in config) 17 years ago
Matthew Wild 7804582f2a s2smanager: Only send reply </stream:stream> when connection is still open 17 years ago
Matthew Wild 8f3b27b822 s2smanager: Miscellaneous logging improvements, changing levels, improving messages and using session loggers where possible 17 years ago
Matthew Wild 7b9dbf5747 core.s2smanager: Buffer data sent before connection 17 years ago
Matthew Wild 27ef148e70 core.s2smanager: Logging improvements 17 years ago