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

Permit urllib3.Timeout instances for defining timeout values #603

Merged
merged 2 commits into from
Jan 16, 2024

Conversation

amotl
Copy link
Member

@amotl amotl commented Jan 12, 2024

About

Permit urllib3.Timeout instances for defining timeout values. Using that, you can configure both the socket connect and read timeout settings, in seconds.

Problem

When defining the timeout value as urllib3.Timeout instance,

HttpClient(crate_host, timeout=urllib3.Timeout(connect=0.01, read=None))

this error is raised:

float() argument must be a string or a real number, not 'Timeout'

References

docs/by-example/http.rst Outdated Show resolved Hide resolved
CHANGES.txt Outdated Show resolved Hide resolved
ImportError: cannot import name 'makeTimeDataFrame' from 'pandas._testing'
@amotl amotl requested a review from matriv January 12, 2024 23:32
@amotl amotl changed the title Stop decoding the timeout parameter strictly as scalar Permit urllib3.Timeout instances for defining timeout values Jan 12, 2024
CHANGES.txt Outdated Show resolved Hide resolved
Using that, you can configure both the socket `connect` and `read`
timeout settings, in seconds.
@amotl amotl merged commit af27cb1 into master Jan 16, 2024
35 checks passed
@amotl amotl deleted the amo/fix-timeout branch January 16, 2024 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants