c14f04a77954e2abf3747d2943c42e4a499d0f6b hiram Mon Sep 20 10:03:35 2021 -0700 restore obsolete botDelay code required by hgPhyloPlace and do not set variables that are in environment diff --git src/hg/inc/botDelay.h src/hg/inc/botDelay.h index cda8f23..f8aab1f 100644 --- src/hg/inc/botDelay.h +++ src/hg/inc/botDelay.h @@ -1,22 +1,38 @@ /* botDelay - contact bottleneck server and sleep * for a little bit if IP address looks like it is * being just too demanding. */ /* Copyright (C) 2004 The Regents of the University of California * See README in this or parent directory for licensing information. */ +void botDelayCgi(char *host, int port, boolean noWarn, double fraction); +/* Connect with bottleneck server and sleep the + * amount it suggests for IP address calling CGI script. */ + +void hgBotDelay(); +/* High level bot delay call - for use with regular webpage output */ + +void hgBotDelayFrac(double fraction); +/* Like hgBotDelay, but imposes a fraction of the standard access penalty */ + +void hgBotDelayNoWarn(); +/* High level bot delay call without warning - for use with non-webpage output */ + +void hgBotDelayNoWarnFrac(double fraction); +/* Like hgBotDelayNoWarn, but imposes a fraction of the standard access penalty */ + int botDelayTime(char *host, int port, char *ip); /* Figure out suggested delay time for ip address in * milliseconds. */ char *botDelayWarningMsg(char *ip, int millis); /* return the string for the default botDelay message * not all users of botDelay want the message to go to stderr * return it for their own use case */ void botDelayMessage(char *ip, int millis); /* Print out message saying why you are stalled. */ int hgBotDelayTime(); /* Get suggested delay time from cgi using the standard penalty. */