Commit dac1f98f authored by Jeremy Hylton's avatar Jeremy Hylton

Give the connect thread a chance to run,

and remove old comment about disconnected errors.
parent bc8b5009
...@@ -453,11 +453,8 @@ class ConnectionTests(CommonSetupTearDown): ...@@ -453,11 +453,8 @@ class ConnectionTests(CommonSetupTearDown):
"Error after server restart; retrying.", "Error after server restart; retrying.",
error=sys.exc_info()) error=sys.exc_info())
get_transaction().abort() get_transaction().abort()
# XXX This is a bloody pain. We're placing a heavy burden # Give the other thread a chance to run.
# on users to catch a plethora of exceptions in order to time.sleep(0.1)
# write robust code. Need to think about implementing
# John Heintz's suggestion to make sure all exceptions
# inherit from POSException.
zLOG.LOG("checkReconnection", zLOG.INFO, "finished") zLOG.LOG("checkReconnection", zLOG.INFO, "finished")
self._storage.close() self._storage.close()
......
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