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

2005-07-12 Thread Chris Withers

Sidnei da Silva wrote:
| Does't the *already included* zeoup.py do exactly what you are trying  
| to do? See the bin directory of your zope home.


Unfortunately no. It uses ClientStorage, which goes through the 1000's
of lines of the connection dance using connect threads and large
timeouts. Effectively, ClientStorage will retry a connection
'forever'. I just want to see if the port is listening and it smells
like ZEO with the minimal reasonable timeout.


Sounds like zeoup.py doesn't do what it should, which is what you're 
after. How about repairing zeoup.py rather than rolling yet another 
not-really-needed script? ;-)


Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


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

2005-07-02 Thread Jens Vagelpohl


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

___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


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

2005-07-02 Thread Sidnei da Silva
| Does't the *already included* zeoup.py do exactly what you are trying  
| to do? See the bin directory of your zope home.

Unfortunately no. It uses ClientStorage, which goes through the 1000's
of lines of the connection dance using connect threads and large
timeouts. Effectively, ClientStorage will retry a connection
'forever'. I just want to see if the port is listening and it smells
like ZEO with the minimal reasonable timeout.

-- 
Sidnei da Silva
Enfold Systems, LLC.
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev