On 14 June 2012 20:06, Dan Kuebrich <[email protected]> wrote: > I don't know that there's a built-in facility for this, but it sounds like > what timeouts are often used for.
Quite > Can you use timeouts on the thrift client sockets > for this? The Python TSocket class has a setTimeout method which IIUC is your best bet for somewhere to bail on a call. It raises some kind of exception IIRC (possibly socket.timeout, although this would be trivial to check). Example code here: https://github.com/davidmiller/rpc/blob/master/rpc/thrifty.py#L13 -- Love regards etc David Miller http://www.deadpansincerity.com 07854 880 883
