To: vim_dev@googlegroups.com Subject: Patch 9.0.1269 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1269 Problem: Channel test often fails on Mac OS. Solution: Increase the wait time from one to 15 milliseconds. (D. Ben Knoble, closes #11894) Files: src/channel.c *** ../vim-9.0.1268/src/channel.c 2022-11-30 18:11:52.686904299 +0000 --- src/channel.c 2023-01-31 21:00:42.898237506 +0000 *************** *** 979,989 **** ch_log(channel, "Trying to connect to %s port %d", dst, port); ! // On Mac and Solaris a zero timeout almost never works. At least wait ! // one millisecond. Let's do it for all systems, because we don't know ! // why this is needed. if (waittime == 0) ! waittime = 1; sd = channel_connect(channel, addr->ai_addr, (int)addr->ai_addrlen, &waittime); --- 979,991 ---- ch_log(channel, "Trying to connect to %s port %d", dst, port); ! // On Mac and Solaris a zero timeout almost never works. Waiting for ! // one millisecond already helps a lot. Later Mac systems (using IPv6) ! // need more time, 15 milliseconds appears to work well. ! // Let's do it for all systems, because we don't know why this is ! // needed. if (waittime == 0) ! waittime = 15; sd = channel_connect(channel, addr->ai_addr, (int)addr->ai_addrlen, &waittime); *** ../vim-9.0.1268/src/version.c 2023-01-31 18:57:08.964117745 +0000 --- src/version.c 2023-01-31 20:57:30.298271528 +0000 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1269, /**/ -- hundred-and-one symptoms of being an internet addict: 80. At parties, you introduce your spouse as your "service provider." /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///