Cannot specify maximum response time

Bug #937865 reported by Jonathan Lange
6
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

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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.