Cannot specify maximum response time
Bug #937865 reported by
Jonathan Lange
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
piston-mini-client |
Fix Released
|
Low
|
Anthony Lenton |
Bug Description
It's possible to use piston-mini-client to make calls to a server that accepts connections but responds very, very slowly. Currently, piston-mini-client provides no way to specify an upper bound on remote calls; this is left up to the user. Handling these at an API caller level is tricky: you have to use threads or make the API calls in another process.
Instead, perhaps p-m-c should provide an option to specify a timeout, and raise an APIError if it hasn't received a complete response by the time that limit is hit.
Related branches
lp:~elachuni/piston-mini-client/timeouts
- software-store-developers: Pending requested
-
Diff: 268 lines (+137/-8)6 files modifieddoc/envvars.rst (+3/-0)
doc/tuning.rst (+17/-0)
piston_mini_client/__init__.py (+31/-8)
piston_mini_client/consts.py (+1/-0)
piston_mini_client/failhandlers.py (+12/-0)
piston_mini_client/tests/test_timeout.py (+73/-0)
Changed in piston-mini-client: | |
status: | New → Confirmed |
Changed in piston-mini-client: | |
importance: | Undecided → Low |
Changed in piston-mini-client: | |
status: | Confirmed → In Progress |
assignee: | nobody → Anthony Lenton (elachuni) |
Changed in piston-mini-client: | |
milestone: | none → 0.7.4 |
status: | In Progress → Fix Released |
To post a comment you must log in.