Skip to content

Update Pingora to 0.9 so its harness accepts connections - #187

Merged
MDA2AV merged 1 commit into
mainfrom
fix/pingora-0.9
Dec 4, 2026
Merged

MDA2AV merged 1 commit into
mainfrom
fix/pingora-0.9

Conversation

@MDA2AV

@MDA2AV MDA2AV commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

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-core 0.7.0 wraps each accepted TCP stream in BufStream::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_capacity now asserts the capacity is greater than zero. So the "Pingora HTTP Proxy Service" thread panics with capacity must be greater than zero on the first connection it accepts. In CI that connection is the readiness curl, so the probe finds nothing listening. The harness installs no logger, so the panic was invisible; a local build with env_logger showed it.

Fix. Pingora 0.9 runs the harness unchanged. Locally: GET, /echo and the POST body echo all work, and a full probe scores 151 of 170, with no crash and no restarts.

🤖 Generated with Claude Code

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.
@MDA2AV
MDA2AV merged commit d91311d into main Dec 4, 2026
1 check failed
@MDA2AV
MDA2AV deleted the fix/pingora-0.9 branch December 4, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant