Log

core/s2smanager.lua @ 4106:e19fc274e182

description author age
s2smanager: Don't bounce error replies for error and result stanzas. Waqas Hussain 2011-01-10
Merge 0.8->trunk Matthew Wild 2011-01-06
s2smanager: Destroy session on immediate failure of a connection attempt (e.g. inability to create sockets) Matthew Wild 2010-12-24
s2smanager: Handle DNS lookup error in response handler Matthew Wild 2010-12-24
s2smanager: send_to_host(): Handle already-destroyed session and bounce stanza accordingly Matthew Wild 2010-12-24
s2smanager: new_outgoing(): Destroy session if first connection attempt fails immediately (e.g. can't create sockets) Matthew Wild 2010-12-24
s2smanager: Give all new outgoing s2s sessions a close method by default (destroy_session) Matthew Wild 2010-12-24
s2smanager: Add a missing semi-colon Matthew Wild 2010-12-24
s2smanager: destroy_session(): Pass reason to retire_session() and return true on successful destruction Matthew Wild 2010-12-24
s2smanager: retire_session(): Add a 'reason' parameter Matthew Wild 2010-12-24
s2smanager: session.send(): Return the result of send_to_host() (and incidentally make this a tail call \o/) Matthew Wild 2010-12-22
s2smanager: send_to_host(): Return false on failure, and true otherwise Matthew Wild 2010-12-22
s2smanager: Destroy session on immediate failure of a connection attempt (e.g. inability to create sockets) Matthew Wild 2010-12-24
s2smanager: Handle DNS lookup error in response handler Matthew Wild 2010-12-24
s2smanager: send_to_host(): Handle already-destroyed session and bounce stanza accordingly Matthew Wild 2010-12-24
s2smanager: new_outgoing(): Destroy session if first connection attempt fails immediately (e.g. can't create sockets) Matthew Wild 2010-12-24
s2smanager: Give all new outgoing s2s sessions a close method by default (destroy_session) Matthew Wild 2010-12-24
s2smanager: Add a missing semi-colon Matthew Wild 2010-12-24
s2smanager: destroy_session(): Pass reason to retire_session() and return true on successful destruction Matthew Wild 2010-12-24
s2smanager: retire_session(): Add a 'reason' parameter Matthew Wild 2010-12-24
s2smanager: session.send(): Return the result of send_to_host() (and incidentally make this a tail call \o/) Matthew Wild 2010-12-22
s2smanager: send_to_host(): Return false on failure, and true otherwise Matthew Wild 2010-12-22
core.s2smanager, mod_console, mod_saslauth, util.certverification: rename util.certverification to util.x509 Kim Alvefur 2010-12-12
s2smanager: Check for getpeercertificate availability (for old LuaSecs) Matthew Wild 2010-11-27
s2s: SASL EXTERNAL Paul Aurich 2010-11-22
s2smanager: Compatibility hack for when not using dialback Paul Aurich 2010-11-22
Monster whitespace commit (beware the whitespace monster). Waqas Hussain 2010-10-16
s2smanager: Don't fire s2sin-destroyed for sessions that were never fully established (thanks Thomas) Matthew Wild 2010-09-05
s2smanager: Fire s2s{in,out}-destroyed when s2s connections are destroyed Matthew Wild 2010-09-05
s2smanager: Fire s2s{in,out}-established when new s2s connections are ready Matthew Wild 2010-08-30
sessionmanager, s2smanager: Give resting sessions a pass-through filter, fixes #202 Matthew Wild 2010-08-22
s2smanager: Remove dependency on eventmanager Matthew Wild 2010-08-03
s2smanager: brackets, just to be sure :) Matthew Wild 2010-08-03
s2smanager: Only bounce real stanzas on s2s failure, not dialback and friends (thanks elghinn) Matthew Wild 2010-08-03
s2smanager: Handle disallow_s2s for incoming streams as well as outgoing Matthew Wild 2010-07-16
s2smanager: Lower default DNS timeout to 15s (it's now a per-DNS-server timeout, rather than total timeout), use net.dns's new timeout system, and remove our custom timeout handlers Matthew Wild 2010-07-05
Merge 0.7->trunk Matthew Wild 2010-07-02
s2smanager: Don't attempt to connect to a nil host (for whatever reason... invalid DNS record perhaps?) (thanks dersd) Matthew Wild 2010-07-02
s2smanager: Register outgoing connection with the connection listener only after initializing filters (thanks darkrain, dersd) Matthew Wild 2010-07-02
s2smanager: Fix logging for outgoing sessions to also log pre-filtered data Matthew Wild 2010-06-13
s2smanager: Move 'sending' debug log message so that it sees the pre-filtered stanzas Matthew Wild 2010-06-10
Merge 0.7->trunk Matthew Wild 2010-06-03
s2smanager: Remove potentially misleading log message (thanks albert) Matthew Wild 2010-06-03
s2smanager: Add filters for outgoing bytes and stanzas Matthew Wild 2010-06-02
Merge 0.6->0.7 Matthew Wild 2010-03-30
stanza_router, s2smanager, modulemanager: Fix for handling of the default namespace on stanzas, causing sometimes jabber:client to be sent over s2s, and accepted Matthew Wild 2010-03-30
Merge 0.6->0.7 Matthew Wild 2010-03-22
Update copyright headers for 2010 Matthew Wild 2010-03-22
sessionmanager, s2smanager: Add type of ?2s_destroyed to resting sessions (fixes a logging traceback, thanks Flo) Matthew Wild 2010-03-22
Merge 0.6->0.7 Matthew Wild 2010-03-18
s2smanager: Remove the infamous 'as per RFC' log message entirely (it happens too often to be useful) Matthew Wild 2010-03-18
Merge 0.6.2/waqas with 0.6.2/MattJ Matthew Wild 2010-03-03
sessionmanager, s2smanager: Fix for syntax of null_data_handler() (thanks Nolan) Matthew Wild 2010-02-12
sessionmanager, s2smanager: Give sessions dummy data handlers that log when data is received by a destroyed session Matthew Wild 2010-02-12
s2smanager: Use s2smanager log() if session doesn't have a logger (thanks Flo) Matthew Wild 2010-02-19
s2smanager: Fix syntax error) Matthew Wild 2010-01-30
s2smanager: require_s2s_encryption -> s2s_require_encryption Matthew Wild 2010-01-30
s2smanager: Make require_s2s_encryption do what it says on the tin Matthew Wild 2010-01-30
s2smanager: Stamp a 'to' on the reply stream:stream. This makes prosody happy. Paul Aurich 2010-01-03
s2smanager: Give reasons to destroy_session in more cases, including when DNS lookup fails Matthew Wild 2009-12-17
s2smanager: Have both destroy_session and bounce_sendq accept a reason string to include in bounced stanzas Matthew Wild 2009-12-17
s2smanager: Send reply stream header only after checking we serve this host (sorry darkrain... :) ) Matthew Wild 2009-12-17
s2smanager: Don't tostring() the data before sending, sends2s already does this. Matthew Wild 2009-11-21
s2smanager: Don't re-destroy destroyed sessions Matthew Wild 2010-03-14
s2smanager: Add open_stream and close methods to resting sessions Matthew Wild 2010-03-14
sessionmanager, s2smanager: Close session on </stream:stream> Matthew Wild 2010-03-11
sessionmanager, s2smanager: Destroyed sessions are now simply resting (not dead) until they are collected - prevents a whole class of tracebacks Matthew Wild 2010-03-08
Merge with 0.6 Matthew Wild 2010-02-25
s2smanager: Log and fail gracefully when unable to create socket for outgoing s2s connection (thanks foucault) Matthew Wild 2010-02-25
s2smanager: Fix for the logic SRV record priority comparison (thanks darkrain) Matthew Wild 2010-02-25
s2smanager: Use s2smanager log() if session doesn't have a logger (thanks Flo) Matthew Wild 2010-02-19
sessionmanager, s2smanager: Fix for syntax of null_data_handler() (thanks Nolan) Matthew Wild 2010-02-12
sessionmanager, s2smanager: Give sessions dummy data handlers that log when data is received by a destroyed session Matthew Wild 2010-02-12
s2smanager, mod_compression, mod_tls: Changed event.session to event.origin for s2s-stream-features event for consistency. Waqas Hussain 2010-02-11
s2smanager: Update for new server SSL API (don't pass a sslctx) Matthew Wild 2010-01-31
s2smanager: Fix syntax error) Matthew Wild 2010-01-30
s2smanager: require_s2s_encryption -> s2s_require_encryption Matthew Wild 2010-01-30
s2smanager: Make require_s2s_encryption do what it says on the tin Matthew Wild 2010-01-30
s2smanager: Whitespace Matthew Wild 2010-01-28
s2smanager: Log error and fail gracefully if we can't open a socket for an outgoing s2s connection (thanks foucault) Matthew Wild 2010-01-19
s2smanager: No-one noticed that Prosody stopped sending to/from on stream headers recently? :) Matthew Wild 2010-01-19
s2smanager: Split sending of stream header into a :open_stream() method Matthew Wild 2010-01-09
s2smanager: Allow new_outgoing() to create sessions without automatically connecting them (set 3rd parameters to false) Matthew Wild 2010-01-04
s2smanager: Stamp a 'to' on the reply stream:stream. This makes prosody happy. Paul Aurich 2010-01-03
s2smanager, hostmanager: Make dialback secrets per-host Matthew Wild 2010-01-03
s2smanager: Trim trailing whitespace Matthew Wild 2010-01-03
s2smanager: Give reasons to destroy_session in more cases, including when DNS lookup fails Matthew Wild 2009-12-17
Merge with backout branch Matthew Wild 2009-12-17
s2smanager: Send reply stream header only after checking we serve this host (sorry darkrain... :) ) Matthew Wild 2009-12-17
Backed out changeset 78c5cb163ea9, to fix another way. Haven't done this for a while :) Matthew Wild 2009-12-17
s2smanager: More whitespace Matthew Wild 2009-12-17
s2smanager: Mark stream as opened sooner, this prevents a duplicated stream header on host-unknown errors (thanks darkrain and his mail server) Matthew Wild 2009-12-17
s2smanager: Whitespace Matthew Wild 2009-12-17
s2smanager: Have both destroy_session and bounce_sendq accept a reason string to include in bounced stanzas Matthew Wild 2009-12-17
s2smanager: Allow configuration of the dialback_secret in the config Matthew Wild 2009-11-26
Merge with 0.6 Matthew Wild 2009-11-25
s2smanager: Log warning when trying to send a stanza from a host we don't serve, instead of a traceback (thanks stpeter) Matthew Wild 2009-11-25
s2smanager: Fix syntax error introduced in merge Matthew Wild 2009-11-22
Merge with trunk Matthew Wild 2009-11-22
s2smanager: Update for new net.server API (s2s still doesn't work with libevent for other reasons) Matthew Wild 2009-11-22
s2smanager: Don't log full stanza when sending outwards Matthew Wild 2009-11-21
s2smanager: Don't tostring() the data before sending, sends2s already does this. Matthew Wild 2009-11-21
s2smanager: Fail outgoing s2s connection if hostname does not pass idna_to_ascii(), thanks Flo + waqas Matthew Wild 2009-11-20
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. Matthew Wild 2009-11-20
s2smanager: Use session-specific logger to log outgoing data on outgoing s2s connections Matthew Wild 2009-10-18
s2smanager: Add incoming_s2s to the prosody object Matthew Wild 2009-10-17
s2smanager: Fix access of 'config' global without requiring configmanager Matthew Wild 2009-10-16
s2smanager: Make s2s-stream-features a per-host event Matthew Wild 2009-10-08
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) Matthew Wild 2009-10-06
s2smanager: Improve log message on missing to/from in stream header Matthew Wild 2009-10-06
s2smanager: Mark session as secure if it was negotiating TLS and opens a new stream Matthew Wild 2009-10-05
Specify XMPP version on response stream to incoming s2s connection. Paul Aurich 2009-10-04
Minor changes; outgoing TLS works. Paul Aurich 2009-10-04
s2smanager: Small comment Matthew Wild 2009-10-04
s2smanager: Don't wait for stream:features from non-XMPP-1.0 hosts Matthew Wild 2009-10-04
s2smanager: Send stream:features for incoming s2s connections which support XMPP 1.0 Matthew Wild 2009-10-04
s2smanager: Give outgoing sessions a host field (the local one) Matthew Wild 2009-10-04
Merge with 0.5 Matthew Wild 2009-09-27
core.s2smanager: Always use last record in the DNS cache Matthew Wild 2009-09-27
Merge with 0.5 Matthew Wild 2009-09-21
core.s2smanager: Don't recurse CNAMEs infinitely :) Matthew Wild 2009-09-21
Merge with 0.5 Matthew Wild 2009-09-20
s2smanager: Timeout unauthed s2s connections Matthew Wild 2009-09-20
Merge with 0.5 Matthew Wild 2009-09-19
s2smanager: Compatibility with domains which use CNAMEs Matthew Wild 2009-09-19
Merge with 0.5 Matthew Wild 2009-09-19
s2smanager: Pass A-record lookups through adns module Matthew Wild 2009-09-19
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) Matthew Wild 2009-08-16
Remove version number from copyright headers Matthew Wild 2009-07-10
s2smanager: Fix to correctly bounce stanzas if first connection attempt fails instantly Matthew Wild 2009-07-08
s2smanager: Log the hostname and address when s2s connection fails instantly Matthew Wild 2009-07-03
Send xml:lang in stream headers, fixes #78 Matthew Wild 2009-07-01
s2smanager: Remove srv_hosts from session when connected, this fixes attempting to reconnect s2s sessions when they are closed during shutdown Matthew Wild 2009-06-19
s2smanager: Use a UUID as the dialback secret Waqas Hussain 2009-06-04
s2smanager: Timeout DNS requests after 60 seconds (or dns_timeout in config) Matthew Wild 2009-05-26
s2smanager: Only send reply </stream:stream> when connection is still open Matthew Wild 2009-05-26
s2smanager: Miscellaneous logging improvements, changing levels, improving messages and using session loggers where possible Matthew Wild 2009-04-30
core.s2smanager: Buffer data sent before connection Matthew Wild 2009-04-20
core.s2smanager: Logging improvements Matthew Wild 2009-04-20
core.s2smanager: Don't initiate dialback if we don't have a connection yet Matthew Wild 2009-04-12
Remove more debugging code which was accidentally committed (don't trust hg) Matthew Wild 2009-04-10
core.s2smanager: Remove some debugging Matthew Wild 2009-04-10
Merge Matthew Wild 2009-04-10
core.s2smanager: Look away... wait for it... now! Hopefully s2s should be back to normal. Matthew Wild 2009-04-08
core.s2smanager: Check for valid host and port before attempting connection Matthew Wild 2009-04-06
sessionmanager, s2smanager, mod_component: Send reply </stream:stream> when client closes stream Matthew Wild 2009-04-05
Fixed: Some nil access bugs Waqas Hussain 2009-03-30
Fixed: s2smanager: Apply nameprep on hostnames passed in stream tag (part of issue #57) Waqas Hussain 2009-03-29
0.3->0.4 Matthew Wild 2009-03-20
core.s2smanager: Remove some old commented code, break a long line in 2 Matthew Wild 2009-03-02
Update copyright notices for 2009 Matthew Wild 2009-01-30
0.2->0.3 Matthew Wild 2009-01-30
GPL->MIT! Matthew Wild 2009-01-30
Port to new server.lua, quite some changes, but I believe everything to be working Matthew Wild 2009-01-17
Bounce stanza errors on failed s2s Waqas Hussain 2008-12-18
Add support for dialback piggy-backing. Fixes #37. Thanks to CShadowRun for helping me test :) Matthew Wild 2008-12-13
0.1 -> 0.2 Matthew Wild 2008-12-10
Slightly more secure dialback secret generation Matthew Wild 2008-12-07
Remove print()s from sessionmanager and s2smanager Matthew Wild 2008-12-06
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. Matthew Wild 2008-12-05
Fix for s2s with jabberd2 (we weren't routing db:verify's over s2sout_unauthed) Matthew Wild 2008-12-05
Don't send stream:features to incoming s2s connections Matthew Wild 2008-12-04
Fix logger ids for c2s and s2sout Matthew Wild 2008-12-04
Insert copyright/license headers Matthew Wild 2008-12-03
No more reading 1 byte at a time from sockets Matthew Wild 2008-11-28
Switched from md5 to sha256 for dialback key generation Waqas Hussain 2008-11-27
Log reason for connection failure Matthew Wild 2008-11-26
(Basic) IDNA and SRV fallback support Matthew Wild 2008-11-26
Remove or comment useless prints, or change them to log() Matthew Wild 2008-11-20
Remove version=1.0 on s2s stream headers, again. Matthew Wild 2008-11-20
Remove an old FIXME comment Matthew Wild 2008-11-19
Comments and logging fixes Matthew Wild 2008-11-19
Send version=1.0 again in s2s stream header Matthew Wild 2008-11-19
Fix for setting the correct host on the socket, seems to fix s2s with XCP Matthew Wild 2008-11-19
Don't send version 1.0. Who cares about Gmail? Matthew Wild 2008-11-19
Send version=1.0 in s2s stream header. Send s2s stream:features when in 1.0 mode. Matthew Wild 2008-11-19
Don't attempt to auth connection unless stanzas are being sent across it Matthew Wild 2008-11-19
Log sent s2s stanzas Matthew Wild 2008-11-19
We have SRV resolving \o/ Matthew Wild 2008-11-18
session:disconnect() -> session:close() for consistency with other Lua APIs Matthew Wild 2008-11-18
Quite some changes, to: Matthew Wild 2008-11-18
Fixed s2s manager's send queue to not store recieved stanza objects (as these can chnage after the send call) Waqas Hussain 2008-11-17
Log how many queued stanzas we send Waqas Hussain 2008-11-15
Update hostname for identi.ca Matthew Wild 2008-11-14
Remove some old unused (and empty) functions from s2smanager Matthew Wild 2008-11-14
Now outgoing s2s sessions are associated with their from_host, fixes #15 Matthew Wild 2008-11-14
Some more logging fixes Matthew Wild 2008-11-14
Yep, s2s definitely works now. This is just a small fix for logging... Matthew Wild 2008-11-14
I knew it ;) Fix sending error replies over s2s (though we shouldn't be error'ing on stream:features anyway) Matthew Wild 2008-11-14
Print out the stanza also Matthew Wild 2008-11-14
Fix for detecting when we are routing a stanza to ourself (I'm sure this has something to do with you, waqas...) Matthew Wild 2008-11-14
Another small fix, for logging in s2smanager Matthew Wild 2008-11-14
Another small fix, for logging in s2smanager Matthew Wild 2008-11-14
Mmm, s2s fixed :) Matthew Wild 2008-11-14
Missed importing a function in last commit Matthew Wild 2008-11-13
Change sending reply stream header to use top_tag() Matthew Wild 2008-11-13
Some s2s fixes. Now connect() does not block, and stanzas are not lost when connection is slow Matthew Wild 2008-11-12
Move some code about so that we don't leave connections hanging if they hit the connection timeout Matthew Wild 2008-11-09
Prevent slow connects for s2s from blocking for so long Matthew Wild 2008-11-09
Fix some very misleading logging Matthew Wild 2008-11-08
Just committing this warning, because I want to know if the problem really affects us Matthew Wild 2008-11-08
Added resource priority handling, etc Waqas Hussain 2008-11-02
Fix s2s once and for all Matthew Wild 2008-11-01
General fixes for s2s, to make it more robust (I hope), sending data to remote hosts sane (s2ssession.send() works as expected), recycle outgoing dialback connections, etc. Matthew Wild 2008-11-01
sends2s -> s2s_session.send(), s2s_session.send() -> s2s_session.sends2s() Matthew Wild 2008-10-30
Better logging of s2s connections Matthew Wild 2008-10-26
Little tweak for more useful logging of closed s2s sessions Matthew Wild 2008-10-26
Remove misleading log message regarding s2s/dialback Matthew Wild 2008-10-25
other half of previous commit Matthew Wild 2008-10-24
Remove some overly-verbose debug log output Matthew Wild 2008-10-24
Destroy s2s sendqueue when connection is established successfully and data written Matthew Wild 2008-10-24
Hack until we get SRV resolving Matthew Wild 2008-10-24
s2s works! \o/ \o/ s2s Matthew Wild 2008-10-24