Skip to content

fix(agent): tell Portwing timeouts apart from unreachable agents - #1422

Closed
scttbnsn wants to merge 4 commits into
dev/v1.8from
fix/v1.8-portwing-bridge-errors
Closed

scttbnsn wants to merge 4 commits into
dev/v1.8from
fix/v1.8-portwing-bridge-errors

Conversation

@scttbnsn

Copy link
Copy Markdown
Contributor

The Portwing Docker bridge answered every transport failure with the same 502, so the images prune route said "may still be running" even when the agent was simply down. The bridge now returns 504 for the 30 s inactivity timeout and 502 with a JSON reason (agent-unreachable, bad-upstream-response, transport-failed) otherwise. The prune and preview routes add details.reason and only claim the prune may still be running on a timeout.

Held for 1.8.1: changes the image, don't merge before the v1.8 GA cut.

@vercel

vercel Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
drydock-website Ready Ready Preview Oct 20, 2026 12:59am UTC
drydockdemo-website Ready Ready Preview Oct 20, 2026 12:59am UTC

@coderabbitai

coderabbitai Bot commented Oct 19, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Axios only installs its connect-phase timeout for the native transport, so the custom connect-tracking transport let a stalled connect hang. Enforce it in the transport: arm a timer when the request gets a connecting socket, clear it on connect (secureConnect for TLS, which is also when TLS counts as connected), close or error, and destroy with ECONNABORTED if it fires.
scttbnsn added a commit that referenced this pull request Oct 20, 2026
* fix(agent): detect half-open agent event streams (#1405)

* fix(compose): fill the operation record like the Docker action (#1406)

* fix(watcher): don't hold update results for release notes (#1409)

* perf(store): use the stats projection for counts (#1411)

* fix(store): keep a retained policy with the replacement on local renames (#1412)

* fix(api): build the dependency graph from the listed containers (#1419)

* fix(agent): tell Portwing timeouts apart from unreachable agents (#1422)

* feat(api): include versions in update-operation-changed events (#1427)

* feat(notifications): show why a notification was skipped (#1429)

* docs(changelog): sort the batch B entries into their sections
@scttbnsn

Copy link
Copy Markdown
Contributor Author

Landed in #1433 as part of folding the reviewed 1.8 work into 1.8.0.

@scttbnsn scttbnsn closed this Oct 20, 2026
@scttbnsn
scttbnsn deleted the fix/v1.8-portwing-bridge-errors branch October 20, 2026 13:28

This branch was successfully deployed

2 active deployments
Preview – drydock-website — 1220fdc3 Deployed Oct 20, 2026 by vercel[bot]
Preview – drydockdemo-website — 1220fdc3 Deployed Oct 20, 2026 by vercel[bot]
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