summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_channel.py
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-20 14:31:00 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-20 14:31:00 +0100
commitac74d5e86cd16b42e81ba48f58f3d45c72758248 (patch)
tree54b1ebc8573e8e4d0f09215ccc829df310b07431 /src/testdir/test_channel.py
parent829c8e369630a7cbbdac015d8177b7fde25e2f19 (diff)
patch 7.4.1616v7.4.1616
Problem: Malformed channel request causes a hang. Solution: Drop malformed message. (Damien)
Diffstat (limited to 'src/testdir/test_channel.py')
-rw-r--r--src/testdir/test_channel.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_channel.py b/src/testdir/test_channel.py
index a465d65d2f..47a12ea7e0 100644
--- a/src/testdir/test_channel.py
+++ b/src/testdir/test_channel.py
@@ -104,6 +104,11 @@ class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
print("sending: {}".format(cmd))
self.request.sendall(cmd.encode('utf-8'))
response = "ok"
+ elif decoded[1] == 'malformed':
+ cmd = '["ex",":"]wrong!["ex","smi"]'
+ print("sending: {}".format(cmd))
+ self.request.sendall(cmd.encode('utf-8'))
+ response = "ok"
elif decoded[1] == 'an expr':
# Send an expr request.
cmd = '["expr","setline(\\"$\\", [\\"one\\",\\"two\\",\\"three\\"])"]'