Skip to content

reverseproxy: log status 499 instead of 0 when client disconnects#7827

Merged
steadytao merged 1 commit into
caddyserver:masterfrom
larrasket:fix/7396-log-499-on-client-disconnect
Jun 18, 2026
Merged

reverseproxy: log status 499 instead of 0 when client disconnects#7827
steadytao merged 1 commit into
caddyserver:masterfrom
larrasket:fix/7396-log-499-on-client-disconnect

Conversation

@larrasket

Copy link
Copy Markdown
Contributor

Fixes #7396

Assistance Disclosure

Claude Sonnet 4.6 was used to generate the test in modules/caddyhttp/reverseproxy/client_disconnect_test.go, with a small tweak.

@CLAassistant

CLAassistant commented Jun 17, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@steadytao steadytao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. When the downstream client cancels before Caddy writes response headers logging 499 is more useful than 0 and this still avoids retrying or marking the upstream unhealthy, thanks for the PR @larrasket.

@steadytao steadytao added the feature ⚙️ New feature or request label Jun 18, 2026
@steadytao steadytao added this to the v2.11.5 milestone Jun 18, 2026
@steadytao steadytao merged commit d2e0ad1 into caddyserver:master Jun 18, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature ⚙️ New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Caddy logging zero status on response_header_timeout

3 participants