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]> |
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] > <javascript:>> 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] <javascript:>. >> 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.