On Fri, May 15, 2009 at 9:35 AM, Matthieu Imbert <[email protected]> wrote: > My service is implemented in python, and can use one of the python > server implementations: TSimpleServer, TThreadedServer, > TThreadPoolServer, but is there a way to add this timeout limitation to > these servers?
Do it in your app code - since you're passing in the session id at each method call, have that session stored in memcached (or similar) for both performance and also because you can apply an expiry time to the entry; update the entry each time a method is called so the session stays open, and throw an exception when a request comes in after the entry has expired. -- Phillip B Oldham [email protected] +44 (0) 7525 01 09 01
