Skip to content

fix: skip H2 for tunnel_request (single ops) — completes #1040#1041

Merged
therealaleph merged 1 commit into
therealaleph:mainfrom
yyoyoian-pixel:fix/skip-h2-tunnel-request
May 11, 2026
Merged

fix: skip H2 for tunnel_request (single ops) — completes #1040#1041
therealaleph merged 1 commit into
therealaleph:mainfrom
yyoyoian-pixel:fix/skip-h2-tunnel-request

Conversation

@yyoyoian-pixel
Copy link
Copy Markdown
Contributor

Summary

PR #1040 skipped H2 for tunnel_batch_request_to but missed tunnel_request (used for plain connect ops). This caused 16–17s long-poll stalls to persist on full-tunnel sessions that go through the single-op path.

Same fix: remove the H2 try/fallback/NonRetryable block, go straight to H1 pool acquire(). H2 remains active for relay mode.

Verified

All h2_relay_request call sites checked:

Call site Function Mode H2 skipped?
do_relay_once_with relay Relay No (correct — relay benefits from H2)
relay() exit-node relay Relay No (correct)
tunnel_request tunnel single op Full tunnel YES — this PR
tunnel_batch_request_to tunnel batch Full tunnel Yes (PR #1040)
tunnel_batch_request_with_timeout tunnel batch Full tunnel Yes (PR #1040)

No other full-tunnel paths use H2 after this fix.

🤖 Generated with Claude Code

…#1040

PR therealaleph#1040 skipped H2 for `tunnel_batch_request_to` but missed
`tunnel_request` (used for plain `connect` ops). This caused
16-17s long-poll stalls to persist on full-tunnel sessions that
go through the single-op path.

Same fix: remove the H2 try/fallback/NonRetryable block, go
straight to H1 pool acquire(). H2 remains active for relay mode.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the type: fix fix: PR — auto-applied by release-drafter label May 11, 2026
@therealaleph therealaleph merged commit 2d5bd34 into therealaleph:main May 11, 2026
1 check passed
therealaleph added a commit that referenced this pull request May 11, 2026
…ops (#1041)

Bumps Cargo.toml v1.9.21 → v1.9.22. Ships @yyoyoian-pixel's PR #1041
which completes #1040 — v1.9.21 skipped H2 for tunnel_batch_request_to
but missed tunnel_request (single-op connect path). 5/5 h2_relay_request
call sites now audited; all full-tunnel paths use H1, relay paths keep
H2. 209 lib tests pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix fix: PR — auto-applied by release-drafter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants