Yelp / bravado

Bravado is a python client library for Swagger 2.0 services
Other
605 stars 117 forks source link

use threading.TIMEOUT_MAX for timeout #472

Open tschaume opened 3 years ago

tschaume commented 3 years ago

Using timeout=None as default causes the OverflowError to be triggered in Windows. This PR fixes #470 by using threading.TIMEOUT_MAX (docs) as default. It also relates to the discussion in Yelp/fido#52.

tschaume commented 3 years ago

@analogue any plans to consider this PR for merging?

tschaume commented 3 years ago

@macisamuele I noticed you reviewed another recent PR :) Any chance you could look over this one, too? Do you also have merge and PyPI release permissions for this repo?

macisamuele commented 3 years ago

As I'm no longer a Yelp employee and as I'm getting less exposure to the library usage I would defer the decision to @analogue (or someone currently within the Yelp org).


My 2 cents around the PR

My recommendation in this case would be to expand more on

mkhorton commented 3 years ago

Hi, just to add that I've also seen reports of multiple Windows users encountering this bug who are using our bravado-powered API client (specifically, they encounter a OverflowError: timeout value is too large). A merge or a fix would be much appreciated!