cloudflared-mirror/cmd/cloudflared/tunnel
Sudarsan Reddy 99b3736cc7 TUN-6999: cloudflared should attempt other edge addresses before falling back on protocol
This PR does two things:
It changes how we fallback to a lower protocol: The current state
is to try connecting with a protocol. If it fails, fall back to a
lower protocol. And try connecting with that and so on. With this PR,
if we fail to connect with a protocol, we will try to connect to other
edge addresses first. Only if we fail to connect to those will we
fall back to a lower protocol.
It fixes a behaviour where if we fail to connect to an edge addr,
we keep re-trying the same address over and over again.
This PR now switches between edge addresses on subsequent connecton attempts.
Note that through these switches, it still respects the backoff time.
(We are connecting to a different edge, but this helps to not bombard an edge
address with connect requests if a particular edge addresses stops working).
2022-12-14 13:17:21 +00:00
..
cmd.go TUN-6999: cloudflared should attempt other edge addresses before falling back on protocol 2022-12-14 13:17:21 +00:00
cmd_test.go TUN-1669: Update license message in help text. Also fix test 2019-04-18 10:42:48 -05:00
config_test.go TUN-4075: Dedup test should not compare order of list 2021-03-10 13:48:59 -06:00
configuration.go TUN-6999: cloudflared should attempt other edge addresses before falling back on protocol 2022-12-14 13:17:21 +00:00
configuration_test.go TUN-5551: Reintroduce FIPS compliance for linux amd64 now as separate binaries 2021-12-20 21:50:42 +00:00
credential_finder.go TUN-4063: Cleanup dependencies between packages. 2021-03-09 14:02:59 +00:00
filesystem.go TUN-3581: Tunnels can be run by name using only --credentials-file, no 2020-11-25 09:54:28 -06:00
fips.go RTG-1339 Support post-quantum hybrid key exchange 2022-09-07 19:32:53 +00:00
info.go TUN-5482: Refactor tunnelstore client related packages for more coherent package 2021-12-28 17:17:49 +00:00
ingress_subcommands.go TUN-5754: Allow ingress validate to take plaintext option 2022-02-22 16:56:22 +00:00
login.go AUTH-3426: Point to new transfer service URL and eliminate PUT /ok 2021-05-19 19:39:56 +00:00
quick_tunnel.go TUN-6583: Remove legacy --ui flag 2022-07-20 16:17:29 -07:00
server.go Add max upstream connections dns-proxy option (#290) 2021-02-12 21:32:29 +04:00
signal.go TUN-4067: Reformat code for consistent import order, grouping, and fix formatting. Added goimports target to the Makefile to make this easier in the future. 2021-03-24 10:53:29 -05:00
signal_test.go TUN-5551: Reintroduce FIPS compliance for linux amd64 now as separate binaries 2021-12-20 21:50:42 +00:00
subcommand_context.go TUN-6935: Cloudflared should use APIToken instead of serviceKey 2022-11-16 17:07:16 +00:00
subcommand_context_teamnet.go TUN-5482: Refactor tunnelstore client related packages for more coherent package 2021-12-28 17:17:49 +00:00
subcommand_context_test.go TUN-6583: Remove legacy --ui flag 2022-07-20 16:17:29 -07:00
subcommand_context_vnets.go TUN-5482: Refactor tunnelstore client related packages for more coherent package 2021-12-28 17:17:49 +00:00
subcommands.go TUN-6970: Print newline when printing tunnel token 2022-11-24 16:03:47 +00:00
subcommands_test.go TUN-5679: Add support for service install using Tunnel Token 2022-03-03 18:59:03 +00:00
tag.go TUN-1099: Bring back changes in 2018.10.1 2018-10-08 14:20:28 -05:00
tag_test.go TUN-1099: Bring back changes in 2018.10.1 2018-10-08 14:20:28 -05:00
teamnet_subcommands.go TUN-5669: Change network command to vnet 2022-01-24 11:26:16 +00:00
vnets_subcommands.go TUN-5669: Change network command to vnet 2022-01-24 11:26:16 +00:00