Skip to content

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

cloutprotocol pushed a commit to cloutprotocol/youtube-transcript-api that referenced this pull request Jul 22, 2025
…nnections

Feature/avoid open tcp connections
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.

3 participants