aboutsummaryrefslogtreecommitdiffstats
path: root/core/s2smanager.lua
Commit message (Collapse)AuthorAgeFilesLines
* s2smanager: send_to_host(): Handle already-destroyed session and bounce ↵Matthew Wild2010-12-241-1/+4
| | | | stanza accordingly
* s2smanager: new_outgoing(): Destroy session if first connection attempt ↵Matthew Wild2010-12-241-1/+5
| | | | fails immediately (e.g. can't create sockets)
* s2smanager: Give all new outgoing s2s sessions a close method by default ↵Matthew Wild2010-12-241-0/+2
| | | | (destroy_session)
* s2smanager: Add a missing semi-colonMatthew Wild2010-12-241-1/+1
|
* s2smanager: destroy_session(): Pass reason to retire_session() and return ↵Matthew Wild2010-12-241-1/+2
| | | | true on successful destruction
* s2smanager: retire_session(): Add a 'reason' parameterMatthew Wild2010-12-241-1/+3
|
* s2smanager: session.send(): Return the result of send_to_host() (and ↵Matthew Wild2010-12-221-1/+1
| | | | incidentally make this a tail call \o/)
* s2smanager: send_to_host(): Return false on failure, and true otherwiseMatthew Wild2010-12-221-0/+3
|
* core.s2smanager, mod_console, mod_saslauth, util.certverification: rename ↵Kim Alvefur2010-12-121-1/+1
| | | | util.certverification to util.x509
* s2smanager: Check for getpeercertificate availability (for old LuaSecs)Matthew Wild2010-11-271-1/+4
|
* s2s: SASL EXTERNALPaul Aurich2010-11-211-2/+36
|
* s2smanager: Compatibility hack for when not using dialbackPaul Aurich2010-11-211-0/+2
|
* Monster whitespace commit (beware the whitespace monster).Waqas Hussain2010-10-161-4/+2
|
* s2smanager: Don't fire s2sin-destroyed for sessions that were never fully ↵Matthew Wild2010-09-051-1/+1
| | | | established (thanks Thomas)
* s2smanager: Fire s2s{in,out}-destroyed when s2s connections are destroyedMatthew Wild2010-09-051-0/+13
|
* s2smanager: Fire s2s{in,out}-established when new s2s connections are readyMatthew Wild2010-08-301-1/+10
|
* sessionmanager, s2smanager: Give resting sessions a pass-through filter, ↵Matthew Wild2010-08-221-0/+1
| | | | fixes #202
* s2smanager: Remove dependency on eventmanagerMatthew Wild2010-08-031-1/+1
|
* s2smanager: brackets, just to be sure :)Matthew Wild2010-08-031-1/+1
|
* s2smanager: Only bounce real stanzas on s2s failure, not dialback and ↵Matthew Wild2010-08-031-1/+2
| | | | friends (thanks elghinn)
* s2smanager: Handle disallow_s2s for incoming streams as well as outgoingMatthew Wild2010-07-161-4/+16
|
* s2smanager: Lower default DNS timeout to 15s (it's now a per-DNS-server ↵Matthew Wild2010-07-051-15/+3
| | | | timeout, rather than total timeout), use net.dns's new timeout system, and remove our custom timeout handlers
* Merge 0.7->trunkMatthew Wild2010-07-021-1/+1
|\
| * s2smanager: Don't attempt to connect to a nil host (for whatever reason... ↵Matthew Wild2010-07-021-1/+1
| | | | | | | | invalid DNS record perhaps?) (thanks dersd)
* | s2smanager: Register outgoing connection with the connection listener only ↵Matthew Wild2010-07-021-4/+4
| | | | | | | | after initializing filters (thanks darkrain, dersd)
* | s2smanager: Fix logging for outgoing sessions to also log pre-filtered dataMatthew Wild2010-06-131-1/+1
| |
* | s2smanager: Move 'sending' debug log message so that it sees the ↵Matthew Wild2010-06-101-1/+1
| | | | | | | | pre-filtered stanzas
* | Merge 0.7->trunkMatthew Wild2010-06-031-1/+0
|\|
| * s2smanager: Remove potentially misleading log message (thanks albert)Matthew Wild2010-06-031-1/+0
| |
* | s2smanager: Add filters for outgoing bytes and stanzasMatthew Wild2010-06-021-2/+29
|/
* Merge 0.6->0.7Matthew Wild2010-03-301-2/+2
|\
| * stanza_router, s2smanager, modulemanager: Fix for handling of the default ↵Matthew Wild2010-03-301-2/+2
| | | | | | | | namespace on stanzas, causing sometimes jabber:client to be sent over s2s, and accepted
* | Merge 0.6->0.7Matthew Wild2010-03-221-2/+2
|\|
| * Update copyright headers for 2010Matthew Wild2010-03-221-2/+2
| |
* | sessionmanager, s2smanager: Add type of ?2s_destroyed to resting sessions ↵Matthew Wild2010-03-221-0/+1
| | | | | | | | (fixes a logging traceback, thanks Flo)
* | Merge 0.6->0.7Matthew Wild2010-03-181-5/+0
|\|
| * s2smanager: Remove the infamous 'as per RFC' log message entirely (it ↵Matthew Wild2010-03-181-6/+0
| | | | | | | | happens too often to be useful)
| * Merge 0.6.2/waqas with 0.6.2/MattJMatthew Wild2010-03-031-0/+3
| |\
| | * sessionmanager, s2smanager: Fix for syntax of null_data_handler() (thanks Nolan)Matthew Wild2010-02-121-1/+1
| | |
| | * sessionmanager, s2smanager: Give sessions dummy data handlers that log when ↵Matthew Wild2010-02-121-0/+3
| | | | | | | | | | | | data is received by a destroyed session
| * | s2smanager: Use s2smanager log() if session doesn't have a logger (thanks Flo)Matthew Wild2010-02-191-1/+1
| | |
| * | s2smanager: Fix syntax error)Matthew Wild2010-01-301-1/+1
| | |
| * | s2smanager: require_s2s_encryption -> s2s_require_encryptionMatthew Wild2010-01-301-1/+1
| | |
| * | s2smanager: Make require_s2s_encryption do what it says on the tinMatthew Wild2010-01-301-0/+10
| | |
| * | s2smanager: Stamp a 'to' on the reply stream:stream. This makes prosody happy.Paul Aurich2010-01-031-1/+1
| | |
| * | s2smanager: Give reasons to destroy_session in more cases, including when ↵Matthew Wild2009-12-171-2/+2
| | | | | | | | | | | | DNS lookup fails
| * | s2smanager: Have both destroy_session and bounce_sendq accept a reason ↵Matthew Wild2009-12-171-3/+6
| | | | | | | | | | | | string to include in bounced stanzas
| * | s2smanager: Send reply stream header only after checking we serve this host ↵Matthew Wild2009-12-171-4/+4
| | | | | | | | | | | | (sorry darkrain... :) )
| * | s2smanager: Don't tostring() the data before sending, sends2s already does this.Matthew Wild2009-11-211-1/+1
| |/
* | s2smanager: Don't re-destroy destroyed sessionsMatthew Wild2010-03-141-0/+1
| |