51d1bcdbeac4b2ee7ce4d749c2a975e8bd8a72b1
galt
  Wed May 27 18:34:11 2020 -0700
added -timeout=1 and -host=blat1a options

diff --git src/lib/net.c src/lib/net.c
index 9766bd0..5a3ba76 100644
--- src/lib/net.c
+++ src/lib/net.c
@@ -175,31 +175,31 @@
 		dyStringPrintf(dy, "TCP non-blocking connect() to %s IP %s timed-out in select() after %ld milliseconds - Cancelling!", hostName, ipStr, msTimeout);
 		return -1;
 		}
 	    }
 	}
     else
 	{
 	dyStringPrintf(dy, "TCP non-blocking connect() error %d - %s", errno, strerror(errno));
 	return -1;
 	}
     }
 return 0; // OK
 }
 
 
-static int netConnectWithTimeout(char *hostName, int port, long msTimeout)
+int netConnectWithTimeout(char *hostName, int port, long msTimeout)
 /* In order to avoid a very long default timeout (several minutes) for hosts that will
 * not answer the port, we are forced to connect non-blocking.
 * After the connection has been established, we return to blocking mode.
 * Also closes sd if error. */
 {
 int sd;
 struct addrinfo *addressList=NULL, *address;
 char portStr[8];
 safef(portStr, sizeof portStr, "%d", port);
 
 if (hostName == NULL)
     {
     warn("NULL hostName in netConnect");
     return -1;
     }