summaryrefslogtreecommitdiffstatshomepage
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
authorAnatolii Sakhnik <sakhnik@gmail.com>2025-12-02 18:14:10 +0200
committerGitHub <noreply@github.com>2025-12-02 11:14:10 -0500
commita141fd2c4d21258c0cf6e6b8fcb32e92daa03b63 (patch)
treef6b3c301d825c769f2880452e81be33a8340b931 /test/functional/vimscript/executable_spec.lua
parent3277dc3b4ee7c260fb56467aa86504b9f0b7772e (diff)
fix(remote): remote-ui connect timeout on slow networks #36800
Problem: Connecting to a remote Neovim fails on slow network: ``` $ nvim --remote-ui --server 10.0.3.100:11111 Remote ui failed to start: connection refused ``` Strace reveals that the connection wasn't actually refused, but was still in progress: ``` 15:52:50.678223 socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 11 15:52:50.678278 setsockopt(11, SOL_TCP, TCP_NODELAY, [1], 4) = 0 15:52:50.678320 connect(11, {sa_family=AF_INET, sin_port=htons(11111), sin_addr=inet_addr("10.0.3.100")}, 16) = -1 EINPROGRESS (Дія зараз виконується) 15:52:50.678443 clock_gettime(CLOCK_MONOTONIC, {tv_sec=21736, tv_nsec=57625406}) = 0 15:52:50.678489 io_uring_enter(4, 3, 3, IORING_ENTER_GETEVENTS, NULL, 0) = 3 15:52:50.678544 epoll_pwait(3, [], 1024, 50, NULL, 8) = 0 15:52:50.728911 clock_gettime(CLOCK_MONOTONIC, {tv_sec=21736, tv_nsec=108159596}) = 0 15:52:50.729203 epoll_ctl(3, EPOLL_CTL_DEL, 11, 0x7ffd6ec9a3bc) = 0 15:52:50.729527 close(11) = 0 ``` Solution: Increase hardcoded timeout from 50ms to 500ms.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions