Re: hang observed using Pyro4

Arend van Spriel <[email protected]> Sat, 23 May 2015 09:15:51 +0200
Newsgroups gmane.comp.python.pyro
Message-ID <[email protected]>

On 23-05-15 00:00, Irmen de Jong wrote:
> 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?

The client. It accesses an element in a dictionary property which is 
exposed.

>> 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.

Will look into that.

> Are you by any chance using gevent to monkeypatch socket stuff?

As I have no clue what you are saying here, probably not.

> What OS/python are you running this on?

Running linux mint:

arend@z30-mint ~ $ uname -r
3.19.1
arend@z30-mint ~ $ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2

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

Did not run any of those, but will try.

Regards,
Arend

------------------------------------------------------------------------------
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