summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_channel.py
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2022-04-04 15:46:58 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-04 15:46:58 +0100
commitcc766a85f460ebb7f8c915508447548b5f5b99bc (patch)
tree063d92f755b260af22cd1d40bd95379b7339e9d2 /src/testdir/test_channel.py
parent4829c1c9e9095a3303caec9af7d02f6547f6df0e (diff)
patch 8.2.4684: cannot open a channel on a Unix domain socketv8.2.4684
Problem: Cannot open a channel on a Unix domain socket. Solution: Add Unix domain socket support. (closes #10062)
Diffstat (limited to 'src/testdir/test_channel.py')
-rw-r--r--src/testdir/test_channel.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testdir/test_channel.py b/src/testdir/test_channel.py
index 36aad2b778..b0c3140927 100644
--- a/src/testdir/test_channel.py
+++ b/src/testdir/test_channel.py
@@ -22,7 +22,8 @@ except ImportError:
class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
def setup(self):
- self.request.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
+ if self.server.address_family != socket.AF_UNIX:
+ self.request.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
def handle(self):
print("=== socket opened ===")