Connecting Tech Pros Worldwide Forums | Help | Site Map

Keep-alived RPC in Python

Dody Suria Wijaya
Guest
 
Posts: n/a
#1: Dec 13 '05
I'm looking for a RPC library in Python that can keep its TCP connection
alive for the duration of a user's login session. The reason is, each
user login to the application server will impose a single dedicated
database connection, and a TCP disconnect will indiciate application
server to then destroy the database connection properly.

Thanks.

background:

I currently uses builtin XMLRPC library in Python, but since the
connection is not being kept-alive, the only way application server know
that it should destroy databaase connection is via 1) User doing logoff
which trigger calling RPC logoff, and 2) a user activity timeout using
monitoring thread.

Problem is, client can't guarantee that it will send logoff RPC (ie:
killed/reboot), and timeout can not be too short or it will auto-logoff
too early.

--
dsw

Closed Thread