6afa9dd4343c3b66ff09f39735170ec8be5f282e
braney
  Wed Sep 18 17:33:15 2024 -0700
add ability to set a timeout on remote loads

diff --git src/hg/hgTracks/config.c src/hg/hgTracks/config.c
index d56f2ef..b5cbb12 100644
--- src/hg/hgTracks/config.c
+++ src/hg/hgTracks/config.c
@@ -666,30 +666,39 @@
         "\n"
         "// set the tooltip text size based on localStorage values\n"
         "let currTooltipSize = localStorage.getItem('tooltipTextSize');\n"
         "let browserTextSize = document.getElementsByName('textSize')[0];\n"
         "if (currTooltipSize === null) {\n"
         "    localStorage.setItem('tooltipTextSize', browserTextSize.value);\n"
         "} else {\n"
         "    updateSelectedTooltipSize(currTooltipSize);\n"
         "}"
         "document.getElementsByName('tooltipTextSize')[0].addEventListener('change', function(e) {\n"
         "    updateSelectedTooltipSize(document.getElementsByName('tooltipTextSize')[0].selectedOptions[0].value);\n"
         "});\n"
         );
     }
 
+
+if ( cfgOption("paraLoadTimeout") )
+    {
+    hPrintf("<TR><TD>Parallel load time out:");
+    hPrintf("<TD style=\"text-align: right\">");
+    hIntVar("paraLoadTimeout", getParaLoadTimeout(), 5);
+    hPrintf("<TD>milliseconds<TD></TR>");
+    }
+
 themeDropDown(cart);
 
 hTableStart();
 if (ideoTrack != NULL)
     {
     hPrintf("<TR><TD>");
     hCheckBox("ideogram", cartUsualBoolean(cart, "ideogram", TRUE));
     hPrintf("</TD><TD>");
     hPrintf("Display chromosome ideogram above main graphic");
     hPrintf("</TD></TR>\n");
     }
 hPrintf("<TR><TD>");
 hCheckBox("guidelines", cartUsualBoolean(cart, "guidelines", TRUE));
 hPrintf("</TD><TD>");
 hPrintf("Show light blue vertical guidelines, or light red vertical  window separators in multi-region view");