patch 7.4.1289
Problem: Channel test fails on MS-Windows, connect() takes too long.
Solution: Adjust the test for MS-Windows using "waittime".
diff --git a/src/channel.c b/src/channel.c
index fef6de5..5e4d182 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -468,7 +468,8 @@
#endif
}
- if (errno == ECONNREFUSED)
+ /* Only retry for netbeans. TODO: can we use a waittime instead? */
+ if (errno == ECONNREFUSED && close_cb != NULL)
{
sock_close(sd);
if ((sd = (sock_T)socket(AF_INET, SOCK_STREAM, 0)) == (sock_T)-1)