diff --git a/twsproxy/__init__.py b/twsproxy/__init__.py index f2c11ecd0c1701e3b3d0faf95b137fd768b0d4de..115e87330297dcb405440b0509f86eadc2a2b2e4 100644 --- a/twsproxy/__init__.py +++ b/twsproxy/__init__.py @@ -171,6 +171,8 @@ class TWSProxy(threading.Thread): if msglength > 0: TWSProxy.reliablesend(dest,buff,msglength) if msglength == 0: + logger.debug('socket shutdown, fh ready to read but 0 bytes returned') + logger.debug(r[0],src) #dest.send(buff) dest.shutdown(shuttype) initshutdown.set()