a7a5686cb5b960d9dab9536fa40fcfcdf1a72393
max
  Wed Jan 17 08:03:49 2024 -0800
harden hgGeneGraph, ongoing build patch, no redmine ID yet

diff --git src/hg/hgGeneGraph/hgGeneGraph src/hg/hgGeneGraph/hgGeneGraph
index 2b3dc79..2691672 100755
--- src/hg/hgGeneGraph/hgGeneGraph
+++ src/hg/hgGeneGraph/hgGeneGraph
@@ -2006,31 +2006,31 @@
         exit(0)
         
     link = getCgiVar("link")
     if link!=None:
         showLink(link)
         exit(0)
 
     page = getCgiVar("page")
     if page=="stats":
         showStats()
         exit(0)
 
     showGraphBrowser()
 
 def main():
-    cgiSetup()
+    cgiSetup(bottleneckFraction=3, useBytes=2)
 
     format = getCgiVar("format")
     if format in ["pdf", "svg", "sif", "json"]:
         conn = sqlConnect(GGDB)
         gene, alg, addNeighbors, sortByCount, geneCount = parseGraphArgs()
         graphLinks, lowLinks = buildGraph(conn, gene, geneCount, MINSUPP, addNeighbors)
         weightedLinks, minAbsCount = flattenLink(graphLinks)
         printGraph(conn, weightedLinks, alg, addNeighbors, gene, format)
         sys.exit(0)
 
 
     # Apache doesn't set LANG, so the default encoding of stdout is ASCII: Change it to utf8
     import codecs
     sys.stdout = open(1, 'w', encoding='utf-8', closefd=False)