Skip to content
Snippets Groups Projects
Commit 35b1c7fb authored by Chris Hines's avatar Chris Hines
Browse files

Revert "more debug statments"

This reverts commit aa469396.
parent da872287
No related branches found
No related tags found
4 merge requests!77Revert "disable agressive kill and restart",!35Dev,!26Dev,!25Dev
...@@ -183,7 +183,6 @@ class TWSProxy(threading.Thread): ...@@ -183,7 +183,6 @@ class TWSProxy(threading.Thread):
logger = logging.getLogger() logger = logging.getLogger()
closed = False closed = False
name = threading.current_thread().name name = threading.current_thread().name
logger.debug('begining sock copy {} {}'.format(src,dest))
while not closed: while not closed:
r,w,e = select.select([src],[],[],TWSProxy.TIMEOUT) r,w,e = select.select([src],[],[],TWSProxy.TIMEOUT)
if len(r) > 0: if len(r) > 0:
...@@ -194,24 +193,20 @@ class TWSProxy(threading.Thread): ...@@ -194,24 +193,20 @@ class TWSProxy(threading.Thread):
if buff is None: if buff is None:
continue continue
except ConnectionResetError as e: except ConnectionResetError as e:
logger.debug('connection reset closing {} {}'.format(src,dest))
closed = True closed = True
continue continue
except Exception as e: except Exception as e:
import traceback import traceback
logger.error(traceback.format_exc()) logger.error(traceback.format_exc())
logger.debug('Exception in sockcopy {} {}'.format(src,dest))
closed = True closed = True
msglength = len(buff) msglength = len(buff)
if msglength > 0: if msglength > 0:
TWSProxy.reliablesend(dest,buff,msglength) TWSProxy.reliablesend(dest,buff,msglength)
if msglength == 0: if msglength == 0:
logger.debug('msglength 0, closing {} {}'.format(src,dest))
dest.shutdown(shuttype) dest.shutdown(shuttype)
initshutdown.set() initshutdown.set()
closed = True closed = True
logger.debug('ending sock copy {} {}'.format(src,dest))
dest.shutdown(shuttype) dest.shutdown(shuttype)
initshutdown.set() initshutdown.set()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment