6fe66e36fae18d828825a6c551b5bb5ec05afab1 galt Thu Sep 13 11:41:17 2012 -0700 add tracking of connect-failures to hgCustom and hgTracks which may have many bigDataUrls pointing to the same failing site; also fixed a bug in the timeout handling of EINTR diff --git src/hg/hgTracks/mainMain.c src/hg/hgTracks/mainMain.c index 98a1f86..a5aab5b 100644 --- src/hg/hgTracks/mainMain.c +++ src/hg/hgTracks/mainMain.c @@ -6,38 +6,40 @@ #include "memalloc.h" #include "localmem.h" #include "hCommon.h" #include "obscure.h" #include "dystring.h" #include "hash.h" #include "cheapcgi.h" #include "htmshell.h" #include "web.h" #include "cart.h" #include "hdb.h" #include "hui.h" #include "hgFind.h" #include "hgTracks.h" #include "versionInfo.h" +#include "net.h" #include "search.h" #include "imageV2.h" int main(int argc, char *argv[]) { long enteredMainTime = clock1000(); measureTime(NULL); +setConnFailuresEnabled(TRUE); browserName = hBrowserName(); organization = "UCSC"; /* change title if this is for GSID */ browserName = (hIsGsidServer() ? "Sequence View" : browserName); organization = (hIsGsidServer() ? "GSID" : organization); organization = (hIsGisaidServer() ? "GISAID" : organization); /* Push very early error handling - this is just * for the benefit of the cgiVarExists, which * somehow can't be moved effectively into doMiddle. */ htmlPushEarlyHandlers(); cgiSpoof(&argc, argv); char * link = webTimeStampedLinkToResourceOnFirstCall("HGStyle.css",TRUE); // resource file link if (link) // wrapped in html