aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-02 15:43:14 -0700
committerzotlabs <mike@macgirvin.com>2017-11-02 15:43:14 -0700
commit0d7062ffdf018287c14f09666cc0e0f82997ccca (patch)
treef36e8f4bc22d9df6c57b35c94b2e6d20856a6800 /include/network.php
parent1b290f573acdd4f003b6ffcce6c0705ea461bd9d (diff)
downloadvolse-hubzilla-0d7062ffdf018287c14f09666cc0e0f82997ccca.tar.gz
volse-hubzilla-0d7062ffdf018287c14f09666cc0e0f82997ccca.tar.bz2
volse-hubzilla-0d7062ffdf018287c14f09666cc0e0f82997ccca.zip
more queue work
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/network.php b/include/network.php
index 73a6aeff2..2caf29ab5 100644
--- a/include/network.php
+++ b/include/network.php
@@ -1433,14 +1433,19 @@ function scrape_feed($url) {
-function do_delivery($deliveries) {
+
+
+function do_delivery($deliveries, $force = false) {
+
+ // $force is set if a site that wasn't responding suddenly returns to life.
+ // Try and shove through everything going to that site while it's responding.
if(! (is_array($deliveries) && count($deliveries)))
return;
$x = q("select count(outq_hash) as total from outq where outq_delivered = 0");
- if(intval($x[0]['total']) > intval(get_config('system','force_queue_threshold',300))) {
+ if(intval($x[0]['total']) > intval(get_config('system','force_queue_threshold',300)) && (! $force)) {
logger('immediate delivery deferred.', LOGGER_DEBUG, LOG_INFO);
foreach($deliveries as $d) {
update_queue_item($d);