summaryrefslogtreecommitdiff
path: root/src/channel.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-07 22:21:19 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-07 22:21:19 +0100
commit0fa98e7b85b52c63611b2fe8e370f0aa1c8f6dc9 (patch)
tree714e5878efcdabb5e7d74eb2564636699e2f35e3 /src/channel.c
parentae8eb3ca927f1b0ac2a6643da8699538cdc380f6 (diff)
downloadvim-0fa98e7b85b52c63611b2fe8e370f0aa1c8f6dc9.zip
patch 7.4.1289
Problem: Channel test fails on MS-Windows, connect() takes too long. Solution: Adjust the test for MS-Windows using "waittime".
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/channel.c b/src/channel.c
index fef6de504..5e4d1825c 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -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)