1
0
forked from aniani/vim

patch 7.4.1289

Problem:    Channel test fails on MS-Windows, connect() takes too long.
Solution:   Adjust the test for MS-Windows using "waittime".
This commit is contained in:
Bram Moolenaar
2016-02-07 22:21:19 +01:00
parent ae8eb3ca92
commit 0fa98e7b85
3 changed files with 6 additions and 3 deletions

View File

@@ -468,7 +468,8 @@ channel_open(char *hostname, int port_in, int waittime, void (*close_cb)(void))
#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)