1
0
Fork 0

requeue deliveries on 503 errors which have 'retry-after' headers

This commit is contained in:
Friendika 2011-09-27 19:27:47 -07:00
commit 4f9c072d66
4 changed files with 9 additions and 2 deletions

View file

@ -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);
}