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

This commit is contained in:
Friendika
2011-09-27 19:27:47 -07:00
parent 75af366122
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);
}