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

blah

parent 19f83108
2 merge requests!90I think there is a problem with multiple threads creating multiple sessions...,!88Dev
Pipeline #56724 passed
......@@ -153,7 +153,7 @@ class TWSProxy(threading.Thread):
name = threading.current_thread().name
while not closed:
r,w,e = select.select([src],[],[],TWSProxy.TIMEOUT)
if len(r) > 0 and (not (type(r) == list)):
if len(r) > 0:
buff = None
msglength = -1
try:
......@@ -172,6 +172,7 @@ class TWSProxy(threading.Thread):
TWSProxy.reliablesend(dest,buff,msglength)
if msglength == 0:
logger.debug('socket shutdown, fh ready to read but 0 bytes returned')
logger.debug('{} {}'.format(r,src))
#dest.send(buff)
dest.shutdown(shuttype)
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