Re: [Twisted-Python] deferring result to PB a callRemote method

2010-01-18 Thread Andrew Bennetts
Chris Laws wrote: [...] >I think the simple answer to my question is to just return a deferred as >the result to the callRemote("shutdown")�method and trigger it as normal. Yes, that's right. You can return Deferreds from your PB server's methods. So long as the eventual result is someth

Re: [Twisted-Python] Timeout with pb callRemote

2010-01-18 Thread David Bolen
Allen Bierbaum writes: > I just tracked down a bug in one of our servers that uses twisted PB. > The long and short of it was that the server made remote calls to > clients that connected in and in some cases those clients would fall > off the network (disconnected network cable, etc) but the ser

[Twisted-Python] Timeout with pb callRemote

2010-01-18 Thread Allen Bierbaum
I just tracked down a bug in one of our servers that uses twisted PB. The long and short of it was that the server made remote calls to clients that connected in and in some cases those clients would fall off the network (disconnected network cable, etc) but the server would not detect this. I tra

[Twisted-Python] deferring result to PB a callRemote method

2010-01-18 Thread Chris Laws
I am writing a tool for work that will run various software development aids such as message capturing and diagnostic control of system processes. My current design strategy is to implement these aids as plugins (not twisted plugins) to a generic plugin runner rather than stand alone applications.