Re: pyro4 stockmarket example - terminating viewer

Irmen de Jong <[email protected]>
Newsgroups gmane.comp.python.pyro
Message-ID <[email protected]>
On 9-12-2012 0:48, Irmen de Jong wrote:

> Try specifying a socket communication timeout (COMMTIMEOUT config item). This will
> enable Python to actually process your CTRL-C keypress, instead of blocking indefinitely
> in a socket I/O operation.


I forgot to mention that you can also look into the loopCondition argument to the
daemon's request loop. The 'callback' example makes use of it, so have a look at that.

And finally, you can integrate Pyro's request handler into your own custom event loop,
to have full control over everything:
http://packages.python.org/Pyro4/servercode.html#integrating-pyro-in-your-own-event-loop


Regards
Irmen de Jong


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
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.