Re: ZEO client hangs at "Testing Connection" and does not receive handshake

Jim Fulton <[email protected]>
Newsgroups gmane.comp.web.zope.zodb
Message-ID <CAPDm-FgKx92K=bbVnVCH5PKEXfSkE+BVkavHrS9eWYQw_ZKPzg@mail.gmail.com>
On Wed, Mar 29, 2017 at 7:25 AM, Sanjay Rao <[email protected]> wrote:

> Hi,
>
> I have a ZODB based application, This application connects to a ZEO server.
> Master process of this application, forks few sub processes which all
> connect to same ZEO server.
>

A single ZEO client connection can't be shared between processes. You need
to create the client after forking.

Jim



>
> In this case, my subprocesses hang at following stage:
>
> ------
>
> 2017-03-29T16:41:12 INFO ZEO.ClientStorage (*62465*) ClientStorage
> (pid=62477) created RW/normal for storage: '1'
>
> ------
>
> 2017-03-29T16:41:12 INFO ZEO.cache created temporary cache file '<fdopen>'
>
> ------
>
> 2017-03-29T16:41:12 INFO ZEO.ClientStorage (*62465*) Testing connection
> <ManagedClientConnection ('127.0.0.1', 8670)>
>
> ------
>
>
> *Interestingly 62465 is pid of master process and I do not know why this
> is appearing in subprocess's logs.*
>
> *I observed this problem on Mac*
>
> *Child processes do not receive hand shake*
>
>
>
> *Did anyone face this problem ?*
>
> *or *
>
> *any idea what could be the issue ?*
>
>
> Regards,
>
> Sanjay Rao
>
> --
> You received this message because you are subscribed to the Google Groups
> "zodb" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jim Fulton
http://jimfulton.info

-- 
You received this message because you are subscribed to the Google Groups "zodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.