Mercurial > hg > ywww
changeset 52:d9dd9705e724
wait longer
author | Charlie Root |
---|---|
date | Thu, 06 Jun 2019 16:33:34 -0400 |
parents | e6976d92cfc9 |
children | dd93cb4b77ad |
files | php/read/similar.php |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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(); }