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

Sanjay Rao <[email protected]>
Newsgroups gmane.comp.web.zope.zodb
Message-ID <[email protected]>
2017-03-29T16:41:12 INFO ZEO.ClientStorage (*62465*) ClientStorage 
(pid=62477) created RW/normal for storage: '1'

In this log message which is coming from subprocess, 62465 is pid of main 
process and 62477 is pid of subprocess.
Please note that I have observed this problem on Mac only, Same code is 
working perfectly on Windows.


On Wednesday, 29 March 2017 19:40:13 UTC+5:30, Sanjay Rao wrote:
>
> After forking I do create a new ZEO client connection. it is not shared 
> among processes.
> subprocesses connect to ZEO server using their own ZEO client.
>
> On Wednesday, 29 March 2017 19:22:39 UTC+5:30, Jim Fulton wrote:
>>
>>
>>
>> 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.