# HG changeset patch # User Charlie Root # Date 1559853214 14400 # Node ID d9dd9705e724dfc967944fe4887cf3d98588dd63 # Parent e6976d92cfc94ce76e94af4fde1b2c9f916b2e45 wait longer diff -r e6976d92cfc9 -r d9dd9705e724 php/read/similar.php --- a/php/read/similar.php Thu Jun 06 16:32:56 2019 -0400 +++ b/php/read/similar.php Thu Jun 06 16:33:34 2019 -0400 @@ -108,17 +108,17 @@ curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); $gotit=0; $semaphore = new SyncSemaphore("Amazon"); - $gotit = $semaphore->lock(1000); + $gotit = $semaphore->lock(5000); if (!$gotit) { file_put_contents('/var/ywww/debug/phpDebug', "Got it: ".(int)$gotit." 4\n",FILE_APPEND); - $gotit = $semaphore->lock(1000); + $gotit = $semaphore->lock(5000); file_put_contents('/var/ywww/debug/phpDebug', "Got it: ".(int)$gotit." 4a\n",FILE_APPEND); } $ret = curl_exec($crl); curl_close($crl); - usleep(500000); + usleep(1000000); if ($gotit) { $semaphore->unlock(); }