Keep-alived RPC in Python

D

Dody Suria Wijaya

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,274
Messages
2,571,366
Members
48,052
Latest member
EvaW192252

Latest Threads

Top