mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 7.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().
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 = channel_open(hostname, port, 0, nb_channel_closed);
|
||||
nb_channel = channel_open(hostname, port, 3000, nb_channel_closed);
|
||||
if (nb_channel != NULL)
|
||||
{
|
||||
/* success */
|
||||
|
Reference in New Issue
Block a user