diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-02-18 22:23:34 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-02-18 22:23:34 +0100 |
commit | 81661fb86801e6d6e5194b43dfd27d73fcc016ec (patch) | |
tree | 7aa3fcc1a790e4b97c17a2515950ac4fdd1e436d /src/netbeans.c | |
parent | ec70bdd68a531762a62728747ab529d7a6dfc842 (diff) | |
download | vim-git-81661fb86801e6d6e5194b43dfd27d73fcc016ec.tar.gz |
patch 7.4.1351v7.4.1351
Problem: When the port isn't opened yet when ch_open() is called it may
fail instead of waiting for the specified time.
Solution: Loop when select() succeeds but when connect() failed. Also use
channel logging for jobs. Add ch_log().
Diffstat (limited to 'src/netbeans.c')
-rw-r--r-- | src/netbeans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netbeans.c b/src/netbeans.c index 759ffa61e..4b56cf8db 100644 --- a/src/netbeans.c +++ b/src/netbeans.c @@ -213,7 +213,7 @@ netbeans_connect(char *params, int doabort) if (hostname != NULL && address != NULL && password != NULL) { port = atoi(address); - nb_channel = channel_open(hostname, port, 0, nb_channel_closed); + nb_channel = channel_open(hostname, port, 3000, nb_channel_closed); if (nb_channel != NULL) { /* success */ |