From f108ea1ce067802d8746dfa171a0a253b9fe4c9e Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 2 Jun 2015 14:38:48 +0200 Subject: sleep 100ms before retrying to avoid alerts on ultraproxy reloads --- it_url.class | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3