Re: Upgraded Pyro3->Pyro4. Seem to have a Proxy deadlock issue.
Isaac Jurado <ijurado-m/[email protected]>
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <CABj_V-m_WOW=CvhMQZm_AKMyqFs8oid5pA0oQpVDqiLuEH9qQQ@mail.gmail.com> |
On Sat, Apr 28, 2012 at 7:24 PM, Todd Williamson <[email protected]> wrote: > > Over the last year or so I've developed a new Python distributed > programming package that uses Pyro to provide a lot of really cool > concurrency mechanisms. Up to this point, I've only used Pyro3, but > before I release the package, I wanted to see if I could get things > working with Pyro4. I was surprised how few changes I really had to > make to get things running. It was almost just a global replace for > ensuring a nameserver is running on the local subnet, > Pyro.core.getProxyForURI-> Pyro4.Proxy, and manually registering the > uri object returned from the Pyro Daemon with the nameserver. With > that said, I tried running my verification suite and ended up with > mixed results. Sometimes my programs work completely and sometimes > they would deadlock. At work, we ran through the exact same story: had proper working code based on Pyro3 and after upgrading to Pyro4 we started suffering random deadlocks (or, at least, a blocked server) so we had to revert back to Pyro3. Also, we were unable to find an explanation; although we couldn't dedicate as much time to find it out. > I have noticed that I can open up a Python interpreter, when the > program hangs, and manually create a new proxy for the same receiver > object that seems to be causing the hanging. Subsequently, if I make > any method call to this new proxy, it unhangs the program above. The > program then runs to completion. Really weird stuff. This is something we didn't find out. Which, as you say, makes the situation even more puzzling. I'm quite intrigued to see if a solution/explanation comes up. Best wishes. -- Isaac Jurado Internet Busines Solutions eConcept "Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?" Brian W. Kernighan ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/