Skip to content

Feature/avoid open tcp connections #391

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

Merged
merged 3 commits into from
Mar 12, 2025

Conversation

jdepoix
Copy link
Owner

@jdepoix jdepoix commented Mar 12, 2025

  • adds the prevent_keeping_connections_alive() -> bool method to ProxyConfig objects
  • When initializing YouTubeTranscriptApi a Connection: close header will be added to the HTTP client, if a proxy config with prevent_keeping_connections_alive() == True is used, as keeping open TCP connections can prevent proxy providers from rotating your IP

@jdepoix jdepoix merged commit cf33531 into master Mar 12, 2025
9 checks passed
@jdepoix jdepoix deleted the feature/avoid-open-tcp-connections branch March 12, 2025 20:19
@coveralls
Copy link

Pull Request Test Coverage Report for Build 13820735283

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 13820219789: 0.0%
Covered Lines: 480
Relevant Lines: 480

💛 - Coveralls

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