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

Clarify timeouts unit #111

Open
mr-cloud opened this issue Sep 12, 2022 · 0 comments
Open

Clarify timeouts unit #111

mr-cloud opened this issue Sep 12, 2022 · 0 comments

Comments

@mr-cloud
Copy link
Owner

I'm confused about the time unit in timeouts.

Apparently, in python, these are seconds.

r = requests.get(w, verify=False, timeout=10) # 10 seconds

I used in my config FiniteDuration and then readTimeout = config.readTimeout.toSeconds.toInt and it turned out that all requests are failing.

Looking at the README of requests-scala I think that it is using milliseconds:

requests.get("https://httpbin.org/delay/1", readTimeout = 10)
// TimeoutException

requests.get("https://httpbin.org/delay/1", readTimeout = 1500)
// ok

ID: 85
Original Author: patrykcelinski
link: Original Link

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

1 participant