import socket


class EchoServer(object):
    """a simple EchoServer"""
    def __init__(self, ip=u'127.0.0.1', port=50000, backlog=5):
        self.ip = ip
        self.port = port
        self.backlog = backlog
        self.socket = socket.socket(
            socket.AF_INET,
            socket.SOCK_STREAM,
            socket.IPPROTO_IP)
        self.socket.bind((self.ip, self.port))
        self.socket.listen(self.backlog)

    def start_listening(self):
        while True:
            self.connection, self.addr = self.socket.accept()
            words = self.connection.recv(32)
            if words:
                self.connection.sendall(unicode(words))
            self.connection.close()
            self.socket.close()
            break

if __name__ == "__main__":
    server = EchoServer()
    server.start_listening()

@@ -474,16 +474,41 @@
 e True:%0A
+            request = %5B%5D%0A
         
@@ -561,16 +561,17 @@
 ccept()%0A
+%0A
         
@@ -575,20 +575,50 @@
        w
-ords
+hile True:%0A                buffer_
  = self.
@@ -653,16 +653,22 @@
     
-if words
+    if buffer_
 :%0A  
@@ -685,133 +685,175 @@
     
-self.connection.sendall(unicode(words))%0A            self.connection.close()%0A            self.socket.close()%0A            break
+    request.append(buffer_)%0A                else:%0A                    break%0A            self.connection.sendall(%22 %22.join(request))%0A            self.connection.close()%0A
 %0A%0Aif

Update EchoServer to keep connection open until client shutsdown connection in order to collect all requests