Skip to content

Please add request timeout 30 secs only as Defult!! #108

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

Open
Leo-Samurai opened this issue Feb 11, 2024 · 2 comments
Open

Please add request timeout 30 secs only as Defult!! #108

Leo-Samurai opened this issue Feb 11, 2024 · 2 comments

Comments

@Leo-Samurai
Copy link

Please add request timeout like requests lib

@sunny755
Copy link

sunny755 commented Jul 6, 2024

You can set the desired timeout using the keyword timeout_seconds.

import tls_client
session = tls_client.Session(
    client_identifier="chrome112",
    random_tls_extension_order=True
)
response = session.get("https://github.com", timeout_seconds=180)

@rsb-23
Copy link

rsb-23 commented Nov 23, 2024

@FlorianREGAZ I can raise a PR for it, based on the approach you prefer?

  • replacing timeout_seconds with timeout
  • Adding timeout as alias. (refer Fork)

I would also suggest to add linter / formatter for consistency. You may refer pre-commit setup

rsb-23 added a commit to rsb-23/Python-Tls-Client that referenced this issue Nov 23, 2024
- added timeout alias
- Using case insensitive dict for headers
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

No branches or pull requests

3 participants