diff options
author | Friendika <info@friendika.com> | 2011-09-27 19:27:47 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-09-27 19:27:47 -0700 |
commit | 4f9c072d661939680bd26b366b3c248d94a3b8da (patch) | |
tree | 96560ab35365f0a5db968827496693859c6a2a82 /include/items.php | |
parent | 75af366122fa472c28a4105553646c53ec0a16e7 (diff) | |
download | volse-hubzilla-4f9c072d661939680bd26b366b3c248d94a3b8da.tar.gz volse-hubzilla-4f9c072d661939680bd26b366b3c248d94a3b8da.tar.bz2 volse-hubzilla-4f9c072d661939680bd26b366b3c248d94a3b8da.zip |
requeue deliveries on 503 errors which have 'retry-after' headers
Diffstat (limited to 'include/items.php')
-rw-r--r-- | include/items.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php index da5a18cad..a1baf7471 100644 --- a/include/items.php +++ b/include/items.php @@ -1042,6 +1042,9 @@ function dfrn_deliver($owner,$contact,$atom, $dissolve = false) { if((! $curl_stat) || (! strlen($xml))) return(-1); // timed out + if(($curl_stat == 503) && (stristr($a->get_curl_headers(),'retry-after'))) + return(-1); + if(strpos($xml,'<?xml') === false) { logger('dfrn_deliver: phase 2: no valid XML returned'); logger('dfrn_deliver: phase 2: returned XML: ' . $xml, LOGGER_DATA); |