From 896e4ec976949cbdbf797c4a3af908612186fa1e Mon Sep 17 00:00:00 2001
From: Chris Hines <chris.hines@monash.edu>
Date: Fri, 25 Nov 2022 12:48:20 +1100
Subject: [PATCH] trying to find why novnc keeps closing

---
 twsproxy/__init__.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/twsproxy/__init__.py b/twsproxy/__init__.py
index f2c11ec..115e873 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()
-- 
GitLab