Skip to content

Commit

Permalink
fix bug: ensure that server connection is present for tcp connections
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Feb 17, 2014
1 parent b5d02ad commit c2828de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libmproxy/protocol/tcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c2828de

Please sign in to comment.