Skip to content

Add additional timeouts on handling incoming/outgoing connections - #191

Merged
ameba23 merged 1 commit into
mainfrom
peg/improve-timeouts
Oct 30, 2026
Merged

ameba23 merged 1 commit into
mainfrom
peg/improve-timeouts

Conversation

@ameba23

@ameba23 ameba23 commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Adds a 60-second deadline for HTTP proxy connection setup, covering TCP, TLS, attestation, and HTTP initialization.

Startup timeouts return an error.

Reconnect timeouts retry with exponential backoff.

Incoming TLS and attestation exchanges also time out after 60 seconds.

@ameba23
ameba23 marked this pull request as draft October 15, 2026 10:31
@ameba23
ameba23 marked this pull request as ready for review October 30, 2026 11:32
@ameba23
ameba23 requested a balanced review from Copilot October 30, 2026 11:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the HTTP proxy setup deadline changes.

No open issues 🎉

What changed in this PR

Adds 60-second setup deadlines to HTTP proxy connections, preventing stalled setup attempts without limiting established connection lifetimes.

Changes:

  • Bounds outgoing TCP, TLS, attestation, and HTTP setup; startup timeouts return an error, while reconnects retry with exponential backoff.
  • Times out incoming TLS and attestation exchanges.
  • Adds timeout regression tests and documents the behavior.
File Description
README.md Documents setup deadlines and timeout behavior.
crates/​attested-tls/​src/​lib.rs Corrects a spelling error in a comment.
crates/​attested-tls-proxy/​src/​http/​mod.rs Implements setup timeouts, adds a timeout error, and tests stalled peers and reconnect retries.
crates/​attested-tls-proxy/​Cargo.toml Enables Tokio test utilities for time-controlled tests.

Review effort: Balanced

@ameba23
ameba23 merged commit 8eeed98 into main Oct 30, 2026
3 checks passed
@ameba23
ameba23 deleted the peg/improve-timeouts branch October 30, 2026 11:36
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.

2 participants