aboutsummaryrefslogtreecommitdiffstats
path: root/net/connect.lua
Commit message (Collapse)AuthorAgeFilesLines
* net.connect: Clear TODO for Happy Eyeballs / RFC 8305, close #1246Kim Alvefur2022-08-191-1/+0
| | | | Gotta have the DOAP references!
* net.connect: Fix accumulation of connection attempt referencesKim Alvefur2022-04-201-0/+1
| | | | | | | | | | | | | Connection attempts that failed the Happy Eyeballs race were not unreferenced and would accumulate. Tested by inspecting the 'pending_connections_map' after establishing s2s with a s2s target where the IPv6 port has a -j DROP rule causing it to time out and the IPv4 attempt wins the race. Expected is that the losing connection stays around until net.server timeouts kick in where it should be removed. The map table should tend towards being empty during idle times.
* net.connect: Improve logging on connection attempt failureMatthew Wild2022-03-211-1/+5
|
* net.connect: Improve handling of failure when attempts are still pendingMatthew Wild2022-03-211-3/+11
| | | | | This could lead to failure being reported too early, even if some connections have not yet failed.
* net.connect: When more targets are immediately available, try them after a delayMatthew Wild2022-03-181-1/+10
| | | | RFC 8305
* net.connect: Support for multiple pending connection attemptsMatthew Wild2022-03-181-5/+10
|
* net.connect: Allow passing TLS context from resolverKim Alvefur2022-01-211-1/+2
| | | | | | Only allowing it to be passed directly makes it hard to combine plain (i.e. starttls) and Direct TLS connections in the same connection resolution procedure. But now we can, using chained resolvers!
* net.connect: Prefer last connection error over last resolver errorKim Alvefur2021-11-131-1/+1
| | | | | E.g. "connection refused" over one IP version instead of NoError for the other IP version.
* net.connect: Propagate last error message from resolversKim Alvefur2021-11-121-2/+2
| | | | | | | | Previously it would only say "unable to resolve server" for all DNS problems. While "NoError in A lookup" might not make much sense to users, it should help in debugging more than the previous generic error. Friendlier errors will be future work.
* net.connect: Remove TODO about use_ipv4/6 done in 3bfb20be844cKim Alvefur2020-06-221-1/+0
|
* Backed out changeset 44ef46e1a951 (not optimal API)Matthew Wild2020-01-251-21/+12
|
* net.connect: Add API to create custom connect()s with options, incl. use_ipv[46]Matthew Wild2020-01-241-12/+21
|
* net.connect: Mention RFC 6724 regressionKim Alvefur2019-12-071-0/+1
| | | | | Default Address Selection algorithm is not applied, resulting in a strong bias towards IPv4.
* net.connect: Add some TODOs and FIXMEsKim Alvefur2019-12-071-1/+3
| | | | And mention issue numbers: #1246, #1428 and #1429
* net.connect: Add some TODO commentsKim Alvefur2019-11-261-0/+4
|
* net.*: Remove tostring call from loggingKim Alvefur2019-07-301-1/+1
| | | | Taken care of by loggingmanager now
* net.connect: Fix passing request table to new listenerKim Alvefur2018-09-261-1/+1
| | | | This could be a return value from ondetach
* net.connect: Remove manual onattach callback invocationKim Alvefur2018-09-261-3/+0
|
* net.connect: Fix to store correct parameterMatthew Wild2018-02-261-1/+1
|
* net.connect: Improve error messageMatthew Wild2018-02-261-1/+1
|
* net.connect: Handle immediate failures of server.addclientMatthew Wild2018-02-261-1/+6
|
* net.connect: Handle case when resolver runs out of targetsMatthew Wild2018-02-261-0/+8
|
* net.connect: Track last connection errorMatthew Wild2018-02-261-1/+2
|
* net.connect: Default to *a pattern if none providedMatthew Wild2018-02-231-1/+1
|
* net.connect: New API for outgoing connections, based on 'service resolvers'Matthew Wild2018-02-231-0/+78