X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/21385f5e51b1ad40ddce3a877364dea40ef9bc5b..21c590416854b1245866b96772fde61050c0e01a:/website/reverse.php diff --git a/website/reverse.php b/website/reverse.php index e2dfaef8..d1603fa1 100755 --- a/website/reverse.php +++ b/website/reverse.php @@ -6,18 +6,6 @@ require_once(CONST_BasePath.'/lib/PlaceLookup.php'); require_once(CONST_BasePath.'/lib/ReverseGeocode.php'); - if (strpos(CONST_BulkUserIPs, ','.$_SERVER["REMOTE_ADDR"].',') !== false) - { - $fLoadAvg = getLoadAverage(); - if ($fLoadAvg > 2) sleep(60); - if ($fLoadAvg > 4) sleep(120); - if ($fLoadAvg > 6) - { - echo "Bulk User: Temporary block due to high server load\n"; - exit; - } - } - $oDB =& getDB(); ini_set('memory_limit', '200M'); @@ -69,6 +57,7 @@ $aPlace = null; } + logEnd($oDB, $hLog, sizeof($aPlace)?1:0); if (CONST_Debug) {