[ZODB-Dev] Try and fail connect strategy for zeo/zrpc
Jens Vagelpohl
jens at dataflake.org
Sat Jul 2 06:00:43 EDT 2005
On 2 Jul 2005, at 01:37, Sidnei da Silva wrote:
> 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?
Does't the *already included* zeoup.py do exactly what you are trying
to do? See the bin directory of your zope home.
jens
More information about the ZODB-Dev
mailing list