[ZODB-Dev] [ zodb-Bugs-640376 ] clientstorage hangs on failed connect
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 18 Nov 2002 15:09:37 -0800
Bugs item #640376, was opened at 2002-11-18 23:09
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=115628&aid=640376&group_id=15628
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeremy Hylton (jhylton)
Assigned to: Guido van Rossum (gvanrossum)
Summary: clientstorage hangs on failed connect
Initial Comment:
I tried to use the zeoup script to test a server I knew
did not exist. I thought this would be a good test
that the script does something useful in the face of
failures. (I tried connecting to www.zope.com, 9001.)
If zeoup.py passes wait=0 to the ClientStorage
constructor, the constructor never returns. There's an
XXX comment in ZEO.zrpc.client that says if the server
never connects or fails, we wait forever. It looks
like we're waiting forever. I think we need to do
something smarter for a case where the server is never
going to respond.
Also, it's impossible to use Ctrl-C to interrupt
zeoup.py when this happens. It looks like the main
thread is stuck in an Event.wait() call.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=115628&aid=640376&group_id=15628