7fe80d37afd296f8db0058f3e444737ff88ff80e
markd
  Mon Jul 26 23:50:19 2010 -0700
address problem of hgTables consuming all available sockets before TIME_WAIT period by using the connection cache. Have hgTable log connection usage information to help ensure this is fixed
diff --git src/hg/inc/hdb.h src/hg/inc/hdb.h
index 477f844..fdb57ab 100644
--- src/hg/inc/hdb.h
+++ src/hg/inc/hdb.h
@@ -124,6 +124,10 @@
 struct sqlConnection *hAllocConn(char *db);
 /* Get free connection if possible. If not allocate a new one. */
 
+struct sqlConnection *hAllocConnMaybe(char *db);
+/* Get free connection if possible. If not allocate a new one. Return
+ * NULL if db doesn't exist or can't be connected to. */
+
 char *getTrackProfileName(struct trackDb *tdb);
 /* get profile is associated with a track, return it, otherwise NULL */