diff options
author | Urban Müller | 2015-06-02 14:38:48 +0200 |
---|---|---|
committer | Urban Müller | 2015-06-02 14:38:48 +0200 |
commit | f108ea1ce067802d8746dfa171a0a253b9fe4c9e (patch) | |
tree | a0b018a2297a8a0d8fecb5cfedf4ea630b00efa4 | |
parent | 865503d8b6a19738aeaa44b71cb0bfc16b7592ed (diff) | |
download | itools-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.class | 3 |
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); |