Skip to content

fix(volo-http): return reusable HTTP/1 connections from the driver - #663

Merged
junliurs merged 1 commit into
mainfrom
fix/http1-managed-connection-reuse
Aug 17, 2026
Merged

fix(volo-http): return reusable HTTP/1 connections from the driver#663
junliurs merged 1 commit into
mainfrom
fix/http1-managed-connection-reuse

Conversation

@junliurs

Copy link
Copy Markdown
Contributor

Move the HTTP/1 sender between the pool, request future, and connection driver through a return channel. Reinsert the connection only after Hyper reports it ready, while preserving cancellation safety and the existing response body fast path.

Motivation

Solution

@junliurs
junliurs requested review from Joshuahoky and shenyj3 August 12, 2026 09:13
@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.61337% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.21%. Comparing base (faf5d99) to head (7d5b1fc).

Files with missing lines Patch % Lines
volo-http/src/client/transport/protocol.rs 97.40% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #663      +/-   ##
==========================================
+ Coverage   50.23%   51.21%   +0.97%     
==========================================
  Files         163      163              
  Lines       20588    21003     +415     
==========================================
+ Hits        10342    10756     +414     
- Misses      10246    10247       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread volo-http/src/client/transport/protocol.rs Outdated
Comment thread volo-http/src/client/transport/protocol.rs Outdated
@junliurs
junliurs force-pushed the fix/http1-managed-connection-reuse branch 3 times, most recently from 7f468e0 to 5cc45b3 Compare August 13, 2026 12:32
shenyj3
shenyj3 previously approved these changes Aug 14, 2026
@junliurs
junliurs force-pushed the fix/http1-managed-connection-reuse branch from 5cc45b3 to c9fdbc6 Compare August 17, 2026 03:46
Move the HTTP/1 sender between the pool, request future, and connection
driver through a return channel. Reinsert the connection only after
Hyper reports it ready, while preserving cancellation safety and the
existing response body fast path.
@junliurs
junliurs force-pushed the fix/http1-managed-connection-reuse branch from c9fdbc6 to 7d5b1fc Compare August 17, 2026 04:02
@junliurs
junliurs merged commit 52da49d into main Aug 17, 2026
18 checks passed
@junliurs
junliurs deleted the fix/http1-managed-connection-reuse branch August 17, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants