fix bug: ensure that server connection is present for tcp connections

This commit is contained in:
Maximilian Hils 2014-02-17 17:25:45 +01:00
parent b5d02add28
commit c2828de4a1
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ class TCPHandler(ProtocolHandler):
Data will be .log()ed, but not stored any further.
"""
def handle_messages(self):
self.c.establish_server_connection()
conns = [self.c.client_conn.rfile, self.c.server_conn.rfile]
while not self.c.close:
r, _, _ = select.select(conns, [], [], 10)