Commit graph

254 commits

Author SHA1 Message Date
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Matthew Wild
18889eae1b sessionmanager, s2smanager: Remove unused imports 2013-04-11 17:35:39 +01:00
Matthew Wild
a5e2b65c01 sessionmanager, s2smanager: Remove open_session tracing 2013-04-08 15:53:18 +01:00
Matthew Wild
c908af2a7d s2smanager: Remove unused function parameter 2013-03-22 14:50:43 +00:00
Matthew Wild
5f6e150c61 s2smanager: Access prosody.hosts instead of hosts global directly 2013-03-22 14:50:29 +00:00
Matthew Wild
339e74b1b9 s2smanager, mod_s2s, mod_dialback, mod_saslauth: Move s2smanager.make_authenticated() to mod_s2s, and plugins now signal authentication via the s2s-authenticated event 2013-03-22 14:18:23 +00:00
Kim Alvefur
3f4b64ddb6 s2smanager: Use unused local, reduce table indexing 2013-03-13 07:33:36 +01:00
Kim Alvefur
4517552d8b s2smanager: Generate session names used for logging the same way everywhere 2013-01-24 00:58:17 +01:00
Marco Cirillo
d4e080f745 s2smanager: missing return on session.send function. 2012-08-26 22:54:10 +00:00
Matthew Wild
249829afcb s2smanager: Remove logging of (unknown) in a case where from_host and to_host should always be set 2012-07-23 17:35:18 +01:00
Matthew Wild
e89b006f03 Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages 2012-07-23 17:32:33 +01:00
Waqas Hussain
6e9784727f s2smanager: Fix a traceback when we close a s2s connection ourselves (thanks for the testing Zash). 2012-06-13 11:47:04 +05:00
Matthew Wild
573a691a31 Merge with Zash 2012-05-10 23:10:56 +01:00
Matthew Wild
75d9d9e997 mod_s2s, s2smanager, mod_dialback: Move addition of session.send() on s2sin to after they are authenticated (thus from mod_s2s to s2smanager). Update mod_dialback to fire route/remote directly, as session.send() is no longer available for s2sin_unauthed. Fixes #291. 2012-05-10 22:59:01 +01:00
Kim Alvefur
3713488b27 s2smanager, mod_s2s: Move checking DNS timeout option to mod_s2s 2012-05-10 23:05:03 +02:00
Kim Alvefur
2cd39663b6 s2smanager: Clean up unused imports. 2012-05-10 23:01:10 +02:00
Matthew Wild
15175bb828 Merge timber->trunk - thanks everyone! 2012-04-24 21:59:20 +01:00
Kim Alvefur
26768f3e54 s2smanager, mod_s2s: Move import of dns_max_depth to mod_s2s 2012-03-11 19:14:28 +01:00
Matthew Wild
4689bd441e Merge 0.9->trunk 2012-03-09 18:46:19 +00:00
Kim Alvefur
5442ecd0fe core.s2smanager: Log the entire stream header. 2012-03-04 17:38:47 +01:00
Matthew Wild
af22709a5e Merge with 0.9 2012-02-25 17:21:15 +00:00
Matthew Wild
ba9e28535b s2smanager: Fix traceback when socket.tcp6 isn't available 2012-02-25 02:03:26 +00:00
Marco Cirillo
74bff42057 s2smanager, mod_s2s: clear up ip_hosts after s2s is marked as established, remove useless space from mod_s2s code 2012-02-24 18:03:27 +00:00
Florian Zeitz
8f06587c50 s2smanager: remove send_to_host. 2012-02-24 15:15:43 +00:00
Kim Alvefur
f9853f402b core.s2smanager: Fix check_cert_status() for when the stream has no from attr 2012-02-21 21:13:13 +01:00
Matthew Wild
3c8c0f2e94 Merge with 0.9 2012-01-26 18:48:21 +00:00
Paul Aurich
fdd51ac3ff s2smanager: Log the host when marking it authenticated 2012-01-24 14:58:54 -08:00
Matthew Wild
f851289311 s2smanager, mod_s2s, mod_s2s/s2sout: Split connection handling out of s2smanager into mod_s2s, and further split connection logic for s2sout to a module lib, s2sout.lib.lua 2012-01-23 16:28:20 +00:00
Matthew Wild
f5b0bf49fd s2smanager: Fix missing import of 'type' (thanks darkrain) 2011-12-20 17:36:38 +00:00
Waqas Hussain
06aa3c416e s2smanager: Don't throw an error when the "interface" config option is a string (which it is by default). 2011-12-14 06:46:24 +05:00
Matthew Wild
8143f5ff10 s2smanager: Remove unused reference to modulemanager 2011-12-13 15:40:37 +00:00
Florian Zeitz
d4584664f7 s2smanager: Store port specified by SRV records 2011-12-07 23:37:56 +01:00
Matthew Wild
5a887a9e66 s2smanager: Use config over xmppserver's default interface 2011-11-28 14:30:12 +00:00
Florian Zeitz
a71b403617 s2smanager, net.dns: Fix handling for NXNAME and SRV target of "." 2011-10-26 02:03:33 +02:00
Florian Zeitz
9be7bd1055 s2smanager, xmppserver_listener: Support for connecting to other servers via IPv6 2011-10-22 18:29:23 +02:00
Paul Aurich
2fa9066d42 s2smanager: Update to newer luasec 2010-12-06 21:46:50 -08:00
Matthew Wild
cc5269517d s2smanager: Fix letter case in log message (thanks darkrain) 2011-06-05 23:55:16 +01:00
Waqas Hussain
9c62d4894f s2smanager: Log reason when destroying a session. 2011-05-07 21:15:13 +05:00
Matthew Wild
6d11c941c0 s2smanager: Drop some log messages to debug level from info/warn 2011-02-22 18:27:31 +00:00
Waqas Hussain
d76f04e84e Merge 0.8->trunk 2011-01-29 04:54:08 +05:00
Matthew Wild
215af9f197 s2smanager: Change 'Connection failed' error message text to 'Server-to-server connection failed' (thanks Paul) 2011-01-26 13:23:39 +00:00
Matthew Wild
59f7814f5f Merge 0.8->trunk 2011-01-10 16:55:14 +00:00
Waqas Hussain
2da3143c9d s2smanager: Don't bounce error replies for error and result stanzas. 2011-01-10 21:11:06 +05:00
Matthew Wild
84b19928a5 s2smanager: Destroy session on immediate failure of a connection attempt (e.g. inability to create sockets) 2010-12-24 04:58:09 +00:00
Matthew Wild
ec15ee4979 s2smanager: Handle DNS lookup error in response handler 2010-12-24 04:57:17 +00:00
Matthew Wild
0f27eda0d6 s2smanager: send_to_host(): Handle already-destroyed session and bounce stanza accordingly 2010-12-24 04:56:37 +00:00
Matthew Wild
9502dc7be9 s2smanager: new_outgoing(): Destroy session if first connection attempt fails immediately (e.g. can't create sockets) 2010-12-24 04:56:02 +00:00
Matthew Wild
4d132026d0 s2smanager: Give all new outgoing s2s sessions a close method by default (destroy_session) 2010-12-24 04:49:30 +00:00
Matthew Wild
40fc886767 s2smanager: Add a missing semi-colon 2010-12-24 04:48:38 +00:00
Matthew Wild
d47a1f622b s2smanager: destroy_session(): Pass reason to retire_session() and return true on successful destruction 2010-12-24 04:48:18 +00:00