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

Revert "socket.recv does not work how I though it did"

This reverts commit 5c03c29b.
parent 71ea4ffb
No related branches found
No related tags found
4 merge requests!77Revert "disable agressive kill and restart",!35Dev,!26Dev,!25Dev
......@@ -206,16 +206,10 @@ class TWSProxy(threading.Thread):
if msglength > 0:
TWSProxy.reliablesend(dest,buff,msglength)
if msglength == 0:
"""
see https://manpages.debian.org/buster/manpages-dev/recv.2.en.html
in particular
Datagram sockets in various domains (e.g., the UNIX and Internet domains) permit zero-length datagrams. When such a datagram is received, the return value is 0.
"""
logger.debug('msglength 0, sending 0 {} {}'.format(src,dest))
dest.send(buff)
#dest.shutdown(shuttype)
#initshutdown.set()
#closed = True
logger.debug('msglength 0, closing {} {}'.format(src,dest))
dest.shutdown(shuttype)
initshutdown.set()
closed = True
logger.debug('ending sock copy {} {}'.format(src,dest))
dest.shutdown(shuttype)
......
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