cloudflare / cloudflare/cloudflared

Cloudflared doesn't recover itself when network is unavailable

Open
#458 9 comments 2 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
15.6k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

Hello

I'm using ``cloudflared proxy-dns --port 5053 --max-upstream-conns 0``. When my ISP connection goes down, cloudflared prompty logs the following:

``cloudflared[3095]: 2021-09-03T15:21:19Z ERR failed to connect to an HTTPS backend "https://1.0.0.1/dns-query" error="failed to perform an HTTPS request: Post \"https://1.0.0.1/dns-query\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"``

However, once the connection recovers, it keeps spamming the same log message over and over, even when the connection has been recovered successfully (i.e I can do pings to 1.1.1.1 without issues). I need to restart the service I configured for it (kill the process and start it again) so it starts answering queries again.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.