mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 7.4.1263
Problem: ch_open() hangs when the server isn't running. Solution: Add a timeout. Use a dict to pass arguments. (Yasuhiro Matsumoto)
This commit is contained in:
@@ -213,7 +213,7 @@ netbeans_connect(char *params, int doabort)
|
||||
if (hostname != NULL && address != NULL && password != NULL)
|
||||
{
|
||||
port = atoi(address);
|
||||
nb_channel_idx = channel_open(hostname, port, nb_channel_closed);
|
||||
nb_channel_idx = channel_open(hostname, port, 0, nb_channel_closed);
|
||||
if (nb_channel_idx >= 0)
|
||||
{
|
||||
/* success */
|
||||
|
Reference in New Issue
Block a user