85e8f7400bfa53d4189f56729b3a12718f734125 max Mon Oct 13 14:20:01 2025 -0700 closing all hgcentral mysql connections before botDelay sleeping, refs #36498 diff --git src/hg/lib/botDelay.c src/hg/lib/botDelay.c index 9e0d02f1db4..c9320597d8d 100644 --- src/hg/lib/botDelay.c +++ src/hg/lib/botDelay.c @@ -207,30 +207,31 @@ { return hgBotDelayTimeFrac(defaultDelayFrac); } int hgBotDelayTimeFrac(double fraction) /* Get suggested delay time from cgi using the standard penalty. */ { char *ip = getenv("REMOTE_ADDR"); char *host = cfgOption("bottleneck.host"); char *port = cfgOption("bottleneck.port"); int delay = 0; if (host != NULL && port != NULL && ip != NULL) { char *botCheckString = getBotCheckString(ip, fraction); + hFreeAllCentral(); delay = botDelayTime(host, atoi(port), botCheckString); freeMem(botCheckString); } return delay; } #define err429 429 #define err429Msg "Too Many Requests" int botDelayMillis = 0; static void jsonHogExit(char *cgiExitName, long enteredMainTime, char *hogHost, int retryAfterSeconds) /* err429 Too Many Requests to be returned as JSON data */ { puts("Content-Type:application/json");