[ZODB-Dev] Try and fail connect strategy for zeo/zrpc

Sidnei da Silva sidnei at enfoldsystems.com
Sun Jun 26 22:27:28 EDT 2005


We have a couple custom applications that use of zeo or just zrpc that
would need a different connect strategy than what's provided as
default.

To be more specific, we need a way to try a connection and either
connect or fail immediately with a reasonably short timeout and if
possible a useful error message.

I have tried to understand the woes involved in establishing a
zeo/zrpc connection and what comes closer to what we want to implement
is providing the 'wait' argument to ClientStorage, but even then it
would at least fire off a thread and retry a number of times
(forever?) before giving up the connection attempt.

Any suggestions about how to best implement this, and would such code
be accepted for inclusion in a latter version of ZEO?

-- 
Sidnei da Silva
Enfold Systems, LLC.


More information about the ZODB-Dev mailing list