a7088ea8bd1828450e85dca8a04b937e7bd38ca1
galt
  Mon Oct 8 12:38:24 2018 -0700
Sqashed BLAT ALl Genomes branch

diff --git src/lib/gfNet.c src/lib/gfNet.c
index 609698d..d6de42d 100644
--- src/lib/gfNet.c
+++ src/lib/gfNet.c
@@ -1,24 +1,33 @@
 /* gfNet.c - Network dependent stuff for blat server. */
 
 /* Copyright (C) 2011 The Regents of the University of California 
  * See README in this or parent directory for licensing information. */
 
 #include "common.h"
 #include "errAbort.h"
 #include "genoFind.h"
 #include "net.h"
 
 
-int gfConnect(char *hostName, char *portName)
-/* Start connection with server. */
+int gfMayConnect(char *hostName, char *portName)
+/* Start connection with server or return -1. */
 {
 /* Connect to server. */
 int sd = netConnect(hostName, atoi(portName));
+// if error, sd == -1
+return sd;
+}
+
+int gfConnect(char *hostName, char *portName)
+/* Start connection with server. Abort on error. */
+{
+/* Connect to server. */
+int sd = gfMayConnect(hostName, portName);
 if (sd < 0)
     {
     errnoAbort("Sorry, the BLAT/iPCR server seems to be down.  Please try "
                "again later.");
     }
 return sd;
 }