Repository navigation
Conversation
Each Caddy configuration change replaces its admin server, and the old server can close a connection before it reads the next request. kool start then failed with EOF, usually on the POST to automatic_https right after it created a listener for a new port. Send an Admin API request once more, after 100 ms, when the connection closes without an answer. Fixes kool-dev#550 [claude|agent|opus-5.5|xhigh]
Shkeats
force-pushed
the
fix/caddy-admin-retry
branch
from
November 19, 2026 16:40
3d0ec8c to
4cdc88e
Compare
Shkeats
marked this pull request as ready for review
November 19, 2026 16:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claude Agent (Opus 5.5, xhigh)
An AI agent wrote this pull request on behalf of
Shkeats.Description
Fixes #550:
kool startfails withPost "http://127.0.0.1:2019/...": EOFwhen it adds a new port to kool-proxy (#550).Each Caddy configuration change replaces its admin server, and the old server can close a connection before it reads the next request.
kool startthen failed, usually on the POST toautomatic_httpsright after creating a listener. Kool now sends an Admin API request once more, after 100 ms, when the connection closes without an answer.Notes
mainwith the reportedEOFand passes with the change.go test -race ./...passes.kool-proxy:mainfailed 14 of 60 starts, this branch 0 of 80.waitForCaddyprobes are repeated too, so the longest wait for a new proxy grows from about 3 s to 6 s.