persistent TCP connection in python using socketserver

M

markobrien85

G'day

I'm currently using socketserver to build a simple XMLSocket (an XML
based protocol used for communication between flash and the outside
world) server. I've got flash establishing a connection, sending a
request and my python server responding. However at this point
socketserver terminates the connection. Which is bad, since i need a
persistent connection so i can push data from the server to the client
without the overhead of polling.

I need to create TCP connection that persists until I explicitly tell
it to terminate, or the connection is terminated on the other end. A
quick look through the socketserver code makes this seem impossible
since it appears to call close after the handle() method.

Is there an even lower level library to be using, or is there some
option I haven't found yet in socketserver.

Cheers
 

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
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top