Commit 176e1c86 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 fa02a025
......@@ -333,6 +333,9 @@ class Connection(smac.SizedMessageAsyncConnection, object):
self.closed = True
self.close_trigger()
self.__super_close()
self.replies_cond.acquire()
self.replies_cond.notifyAll()
self.replies_cond.release()
def close_trigger(self):
# Overridden by ManagedClientConnection.
......@@ -627,7 +630,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