diff options
Diffstat (limited to 'src/testdir/test_channel.py')
-rw-r--r-- | src/testdir/test_channel.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_channel.py b/src/testdir/test_channel.py index 26c7dea8d..9a3c9213a 100644 --- a/src/testdir/test_channel.py +++ b/src/testdir/test_channel.py @@ -140,6 +140,10 @@ class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler): print("sending: {}".format(cmd)) self.request.sendall(cmd.encode('utf-8')) response = "" + elif decoded[1] == 'close me': + print("closing") + self.request.close() + response = "" elif decoded[1] == 'wait a bit': time.sleep(0.2) response = "waited" |