Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(pool): Connection pool distinguishes request versions #430

Merged
merged 2 commits into from
Feb 15, 2025
Merged

Conversation

0x676e67
Copy link
Owner

This pull request introduces changes to the src/util/client/mod.rs file to include the HTTP version in the PoolKey struct and updates the related methods accordingly. Additionally, a new test has been added to verify the behavior of the client pool cache.

Changes to src/util/client/mod.rs:

  • Added version field to PoolKey struct and updated the new method to include the version parameter.
  • Updated the Dst::new method to accept the version parameter and pass it to PoolKey::new.
  • Modified the Dst::new method to pass the version parameter to PoolKey::new when constructing a Dst instance.
  • Updated the request method to extract the HTTP version from the request and pass it to the Dst::new method.
  • Modified the request method to include the version parameter when calling Dst::new.

New test in tests/client.rs:

  • Added pool_cache test to verify the behavior of the client pool cache with different HTTP versions.

@0x676e67 0x676e67 merged commit c6bedcd into 2.x Feb 15, 2025
3 checks passed
@0x676e67 0x676e67 deleted the v2.x branch February 15, 2025 05:03
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