requeue deliveries on 503 errors which have 'retry-after' headers
This commit is contained in:
parent
75af366122
commit
4f9c072d66
4 changed files with 9 additions and 2 deletions
|
|
@ -187,6 +187,9 @@ EOT;
|
|||
logger('slapper returned ' . $return_code);
|
||||
if(! $return_code)
|
||||
return(-1);
|
||||
if(($return_code == 503) && (stristr($a->get_curl_headers(),'retry-after')))
|
||||
return(-1);
|
||||
|
||||
return ((($return_code >= 200) && ($return_code < 300)) ? 0 : 1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue