thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phillip B Oldham <>
Subject Re: sessions on top of thrift
Date Fri, 15 May 2009 08:52:18 GMT
On Fri, May 15, 2009 at 9:35 AM, Matthieu Imbert
<> 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
+44 (0) 7525 01 09 01

View raw message