Commit a07edb89 authored by Marius Gedminas's avatar Marius Gedminas

Removed a needless timeout to a condition wait call. Using timeouts

can cause signidficant delays, especially on systems with very
course-grained sleeps, like most linux systems.

Extracted from rev 73871 in svn://svn.zope.org/repos/main/ZODB/trunk/src/ZEO
(Jim Fulton did the extracting and handed me the diff on IRC).
parent d1320aef
......@@ -439,6 +439,9 @@ class Connection(smac.SizedMessageAsyncConnection, object):
self.closed = True
self.__super_close()
self.close_trigger()
self.replies_cond.acquire()
self.replies_cond.notifyAll()
self.replies_cond.release()
def close_trigger(self):
# Overridden by ManagedClientConnection.
......@@ -734,7 +737,7 @@ class Connection(smac.SizedMessageAsyncConnection, object):
(msgid, short_repr(reply)), level=TRACE)
return reply
if self.is_async():
self.replies_cond.wait(10.0)
self.replies_cond.wait()
else:
self.replies_cond.release()
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment