[Checkins] [zopefoundation/ZEO] 7d7024: Avoid waiting on futures using timeouts
GitHub
noreply at github.com
Mon Oct 24 21:11:45 CEST 2016
Branch: refs/heads/avoid-future-timeouts
Home: https://github.com/zopefoundation/ZEO
Commit: 7d70244f93276f604c480e64dfeb44052b19b11c
https://github.com/zopefoundation/ZEO/commit/7d70244f93276f604c480e64dfeb44052b19b11c
Author: Jim Fulton <jim at zope.com>
Date: 2016-10-24 (Mon, 24 Oct 2016)
Changed paths:
M CHANGES.rst
M src/ZEO/asyncio/client.py
M src/ZEO/asyncio/tests.py
Log Message:
-----------
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.
More information about the checkins
mailing list