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().
diff --git a/src/netbeans.c b/src/netbeans.c
index 759ffa6..4b56cf8 100644
--- a/src/netbeans.c
+++ b/src/netbeans.c
@@ -213,7 +213,7 @@
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 */