summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2015-06-02 14:38:48 +0200
committerUrban Müller2015-06-02 14:38:48 +0200
commitf108ea1ce067802d8746dfa171a0a253b9fe4c9e (patch)
treea0b018a2297a8a0d8fecb5cfedf4ea630b00efa4
parent865503d8b6a19738aeaa44b71cb0bfc16b7592ed (diff)
downloaditools-f108ea1ce067802d8746dfa171a0a253b9fe4c9e.tar.gz
itools-f108ea1ce067802d8746dfa171a0a253b9fe4c9e.tar.bz2
itools-f108ea1ce067802d8746dfa171a0a253b9fe4c9e.zip
sleep 100ms before retrying to avoid alerts on ultraproxy reloads
-rw-r--r--it_url.class3
1 files changed, 3 insertions, 0 deletions
diff --git a/it_url.class b/it_url.class
index c18f867..39ce1c5 100644
--- a/it_url.class
+++ b/it_url.class
@@ -269,7 +269,10 @@ function get($p=null, $timeout=5)
}
if (!$result && $p['retries'] > 0 && $url->result < 400)
+ {
+ usleep(100*1000);
$result = $url->get(array('retries' => $p['retries'] - 1) + $p);
+ }
if (($filter = EDC('res')) && strstr($p['url'], it::replace(array('1' => ":"), $filter)))
ED($result);