Avoid waiting on futures using timeouts
On Python 2, waiting on a future result with a timeout is very expensive. (Because conditions with timeouts are very expensive.) The thing is, we still want to use timeouts when we're disconnected. We don't want requests to fail right away of the disconnection is short. We do a bit of a dance to only use a timeout if we're disconnected.
Showing
Please register or sign in to comment