summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_channel.py
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-17 22:33:53 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-17 22:33:53 +0200
commit0b39ec3c7dd41852fa6f0430b3f963c59d0b50d8 (patch)
treec53da01a53010ee68a9c4f137cccf9f5ce3d26ca /src/testdir/test_channel.py
parent6fc3b59ee914a0d1710c8b037a0c592e0a7c34d4 (diff)
patch 8.2.0786: channel test is flaky on FreeBSDv8.2.0786
Problem: Channel test is flaky on FreeBSD. Solution: Set the sockiet TCP_NODELAY option. Adjust expected line count in netbeans test. (Ozaki Kiichi, closes #6097)
Diffstat (limited to 'src/testdir/test_channel.py')
-rw-r--r--src/testdir/test_channel.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/test_channel.py b/src/testdir/test_channel.py
index 6b2947d904..8dba3ba4ca 100644
--- a/src/testdir/test_channel.py
+++ b/src/testdir/test_channel.py
@@ -21,6 +21,9 @@ except ImportError:
class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
+ def setup(self):
+ self.request.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
+
def handle(self):
print("=== socket opened ===")
while True: