persistent TCP connection in python using socketserver

Discussion in 'Python' started by markobrien85@gmail.com, Jan 29, 2009.

  1. Guest

    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
     
    , Jan 29, 2009
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Marc E
    Replies:
    1
    Views:
    1,222
    Bjorn Abelli
    Nov 5, 2005
  2. Kathryn Bean
    Replies:
    1
    Views:
    800
    John Harrison
    Oct 28, 2004
  3. Chris Spencer

    Persistent XMLRPC Connection

    Chris Spencer, Aug 14, 2005, in forum: Python
    Replies:
    0
    Views:
    459
    Chris Spencer
    Aug 14, 2005
  4. David Rasmussen

    Making a persistent HTTP connection

    David Rasmussen, Nov 14, 2005, in forum: Python
    Replies:
    5
    Views:
    6,635
    Piet van Oostrum
    Nov 18, 2005
  5. Tiger
    Replies:
    5
    Views:
    1,230
    Dave Thompson
    May 1, 2006
  6. Jean-Paul Calderone
    Replies:
    2
    Views:
    1,620
    BlakeF
    Feb 1, 2009
  7. gk
    Replies:
    7
    Views:
    1,393
    Tom Anderson
    Oct 12, 2010
  8. mel
    Replies:
    9
    Views:
    293
    Thomas 'PointedEars' Lahn
    Apr 18, 2008
Loading...