Repository navigation
Update Pingora to 0.9 so its harness accepts connections - #187
Merged
Merged
Conversation
The Pingora entry never answered in CI, even after #169: every test failed to connect. pingora-core 0.7.0 wraps each accepted TCP stream in BufStream::with_capacity(0, 0, ..) and sizes the buffers later; tokio 1.54, which cargo resolves today (there is no lockfile), asserts that a BufReader capacity is greater than zero, so the service thread panicked ("capacity must be greater than zero") on the first connection. In CI that was the readiness curl, so the probe found nothing listening. Pingora 0.9 builds the harness unchanged and runs it: a full local probe scores 151 of 170, with no crash.
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.
The Pingora entry has never answered in CI, even after #169: every test fails with "Failed to connect", including in the run that followed the December merges.
Cause.
pingora-core0.7.0 wraps each accepted TCP stream inBufStream::with_capacity(0, 0, …)and sizes the buffers later (l4/stream.rs:471). The entry has no lockfile, so cargo resolves today's tokio (1.54.1).tokio::io::BufReader::with_capacitynow asserts the capacity is greater than zero. So the "Pingora HTTP Proxy Service" thread panics withcapacity must be greater than zeroon the first connection it accepts. In CI that connection is the readinesscurl, so the probe finds nothing listening. The harness installs no logger, so the panic was invisible; a local build withenv_loggershowed it.Fix. Pingora 0.9 runs the harness unchanged. Locally: GET,
/echoand the POST body echo all work, and a full probe scores 151 of 170, with no crash and no restarts.🤖 Generated with Claude Code