Commit graph

35 commits

Author SHA1 Message Date
Matthew Wild
86ee041be8 mod_s2s: Use a separate resolver object for each outgoing session
Cleaner approach hopefully fixes problems with some peoples' DNS
hanging after a while, failed DNS when a large number of queries
are made at once, and source port re-use.

Related issues: #487, 761, #991, #992, #1001
2017-09-25 23:12:47 +01:00
Kim Alvefur
36b9149295 mod_s2s: Log error message from DNS lookup 2016-10-04 15:46:24 +02:00
Kim Alvefur
ef3f3b099f mod_s2s: Set read mode for s2sout sockets to the same as s2sins 2016-08-12 01:38:40 +02:00
Kim Alvefur
6116ba8cfb Merge 0.9->0.10 2016-01-22 14:49:05 +01:00
Kim Alvefur
ffb24222c3 Backout 63f5870f9afe, no longer needed since Windows is currently unsupported 2016-01-21 22:21:19 +01:00
Kim Alvefur
3b6f62670d mod_s2s/s2sout: Keep SRV lookup response around even if it's empty 2015-11-05 13:54:35 +01:00
Kim Alvefur
cedc24858c Merge 0.9->0.10 2015-05-13 22:31:59 +02:00
Kim Alvefur
7643d6dc8f mod_s2s/s2sout: Use the local address assigned to UDP sockets instead of util.net to enumerate possible source addresses 2015-05-13 21:47:39 +02:00
Kim Alvefur
9906fca5ac mod_s2s/s2sout: Remove now unused config option dns_max_depth 2015-05-13 21:43:05 +02:00
Kim Alvefur
3e6b35b5d4 Merge 0.9->0.10 2015-04-26 00:06:44 +02:00
Kim Alvefur
7dff400ed5 net.dns, mod_s2s: Add chasing of CNAMEs to net.dns and remove it from mod_s2s 2015-04-24 14:14:01 +02:00
Kim Alvefur
b4934b66b9 mod_s2s: Move filter initialization to common place 2014-05-22 22:48:06 +02:00
Kim Alvefur
a8479fce15 Merge 0.9 -> 0.10 2014-02-12 19:26:22 +01:00
Kim Alvefur
5e2d0c3ba7 mod_s2s: Log a warning if no local addresses are found, as this breaks s2sout 2014-02-09 15:13:46 +01:00
Kim Alvefur
5178a1e79f mod_c2s, mod_s2s: Set session.encrypted as session.secure does not allways mean encrypted (eg consider_bosh_secure) 2013-10-07 12:43:00 +02:00
Kim Alvefur
b21a193598 mod_s2s: Lower "Beginning new connection attempt" message from info to debug level 2013-08-14 14:44:56 +02:00
Matthew Wild
2666d8e8e7 mod_s2s/s2sout.lib: Improve error message logged at 'info' level when failing to connect to a host. Now 'Failed in all attempts to connect to XYZ' 2013-08-14 00:18:39 +01:00
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Matthew Wild
34fd62b3ff mod_s2s/s2sout.lib: Remove unused variables and imports 2013-06-18 12:14:46 +01:00
Matthew Wild
5a6094750b mod_s2s/s2sout.lib: Remove reference to undefined global 2013-06-18 12:12:49 +01:00
Matthew Wild
f538d14ed4 mod_s2s/s2sout.lib: Use new util.net.local_addresses() to fetch local interface addresses 2013-06-18 12:12:12 +01:00
Matthew Wild
28e1592c0c mod_s2s/s2sout.lib: Only attempt to create an IPv6 socket if LuaSocket supports IPv6 2013-06-18 12:11:40 +01:00
Florian Zeitz
e53d5b4f79 util.rfc{3484,6724}: Update to RFC 6724 2013-04-30 18:34:03 +02:00
Kim Alvefur
ae5806cd67 mod_s2s: Reset secure flag on new connection attempt 2013-03-25 19:08:15 +01:00
Kim Alvefur
9c4985d9d8 mod_s2s: Keep the dns answer object around a while so plugins can look at it 2013-03-23 23:30:13 +01:00
Kim Alvefur
ee9ef878c4 mod_s2s, mod_saslauth, mod_compression: Refactor to have common code for opening streams 2013-03-16 17:46:43 +01:00
Kim Alvefur
ddd751aed9 mod_s2s: Check that an SRV reply isn't empty. 2012-09-03 04:22:40 +02:00
Matthew Wild
9f24aa6cf8 mod_s2s/s2sout.lib: Use %s to insert strings into log messages instead of concatenation 2012-07-23 13:29:33 +01:00
Matthew Wild
07c9903d58 mod_s2s/s2sout.lib: Fix indentation 2012-07-22 16:29:52 +01:00
Matthew Wild
fb3b789dca mod_s2s/s2sout.lib: Don't wait for both v4 and v6 DNS responses if we only send one (e.g. because v6 is disabled) 2012-07-22 16:17:04 +01:00
Kim Alvefur
e6bf33e872 mod_s2s: Remove check for socket.tcp6() 2012-05-29 18:04:29 +02:00
Kim Alvefur
bb98bf4a58 mod_s2s: Only do AAAA lookup if IPv6 is available, and A if IPv4 is available. 2012-05-29 18:02:48 +02:00
Matthew Wild
81cbf8c7d4 mod_s2s, s2sout.lib: Send stream header in onconnect() 2012-05-24 03:08:42 +01:00
Kim Alvefur
3713488b27 s2smanager, mod_s2s: Move checking DNS timeout option to mod_s2s 2012-05-10 23:05:03 +02:00
Matthew Wild
d18c1ff0da Rename plugins/s2s/ to plugins/mod_s2s/ 2012-05-04 00:05:15 +01:00
Renamed from plugins/s2s/s2sout.lib.lua (Browse further)