[ZODB-Dev] Try and fail connect strategy for zeo/zrpc
Sidnei da Silva
sidnei at enfoldsystems.com
Fri Jul 1 20:37:29 EDT 2005
On Mon, Jun 27, 2005 at 02:38:48PM -0400, Tim Peters wrote:
| > Any suggestions about how to best implement this,
|
| Maybe just create your own socket, attempt to connect, and if that attempt
| fails produce the kind of error message you want to see? Of course if it
| succeeds, there's some chance it will fail if you immediately close the
| socket and do a "normal" connection attempt.
That is good enough for me yes. Attached the script I've came up with,
which is far from perfect but has just the amount of functionality I
needed. Maybe we should include something similar to that with ZEO
itself?
--
Sidnei da Silva
Enfold Systems, LLC.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zeo_ping.py
Type: text/x-python
Size: 1537 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20050701/a0d9df2a/zeo_ping.py
More information about the ZODB-Dev
mailing list