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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20230131210140.C7DAD1C0903%40moolenaar.net.

Raspunde prin e-mail lui