Re: hang observed using Pyro4

Irmen de Jong <[email protected]> Sat, 23 May 2015 00:00:06 +0200
Newsgroups gmane.comp.python.pyro
Message-ID <[email protected]>
On 22-5-2015 19:57, Arend van Spriel wrote:
> I am thinking about using Pyro4 in a testing framework with a controller 
> accessing objects on DUT (device under test). The package for the 
> objects on the DUT are on GitHub [1]. I have a pyro-experiment branch there.
> 
> As experiment I create a server object (in lib/server.py) which exposes 
> a create_instance() method through which the client can request the 
> creation of a particular class on the server, which is registered with 
> the Daemon and returned. The requested class instance may create other 
> custom objects which are also registered with the Daemon. The result is 
> an object hierarchy with Proxy objects. So far so good. In my experiment 
> the client (in examples/example06.py) accesses those Proxy objects to 
> show data in terminal. However, it hangs after a couple of Proxy calls 
> on socket recv.

What hangs, client? server?

> I also tried with USE_MSG_WAITALL set to False, but the 
> result is the same. The experiment is done with client and server on the 
> same machine. Any suggestions about what might be going on or how to 
> debug this would be appreciated.

Enable pyro logging and see what's happening in there.

Are you by any chance using gevent to monkeypatch socket stuff?
What OS/python are you running this on?


Do you also observe similar issues when running any of the examples that come with Pyro?

Irmen


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y