cloudflared-mirror/supervisor
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
..
cloudflare_status_page.go TUN-5749: Refactor cloudflared to pave way for reconfigurable ingress 2022-02-14 15:37:09 +00:00
cloudflare_status_page_test.go TUN-5749: Refactor cloudflared to pave way for reconfigurable ingress 2022-02-14 15:37:09 +00:00
conn_aware_logger.go TUN-6617: Dont fallback to http2 if QUIC conn was successful. 2022-08-12 08:40:03 +00:00
external_control.go TUN-5749: Refactor cloudflared to pave way for reconfigurable ingress 2022-02-14 15:37:09 +00:00
metrics.go TUN-5749: Refactor cloudflared to pave way for reconfigurable ingress 2022-02-14 15:37:09 +00:00
pqtunnels.go RTG-1339 Support post-quantum hybrid key exchange 2022-09-07 19:32:53 +00:00
reconnect.go TUN-5749: Refactor cloudflared to pave way for reconfigurable ingress 2022-02-14 15:37:09 +00:00
reconnect_test.go TUN-5749: Refactor cloudflared to pave way for reconfigurable ingress 2022-02-14 15:37:09 +00:00
supervisor.go TUN-6999: cloudflared should attempt other edge addresses before falling back on protocol 2022-12-14 13:17:21 +00:00
supervisor_test.go TUN-6929: Use same protocol for other connections as first one 2022-11-17 10:28:04 +00:00
tunnel.go TUN-6999: cloudflared should attempt other edge addresses before falling back on protocol 2022-12-14 13:17:21 +00:00
tunnel_test.go RTG-1339 Support post-quantum hybrid key exchange 2022-09-07 19:32:53 +00:00
tunnelsforha.go TUN-5749: Refactor cloudflared to pave way for reconfigurable ingress 2022-02-14 15:37:09 +00:00