tcp protocol: stop on server shutdown

This commit is contained in:
Maximilian Hils 2016-04-29 20:33:07 -07:00
parent 317b4becca
commit 30bafea41a

View File

@ -39,7 +39,7 @@ class RawTCPLayer(Layer):
conns = [client, server]
try:
while True:
while not self.channel.should_exit.is_set():
r = ssl_read_select(conns, 10)
for conn in r:
dst = server if conn == client else client