aboutsummaryrefslogtreecommitdiffstats
path: root/include/onepoll.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-07 15:54:49 -0700
committerfriendica <info@friendica.com>2012-05-07 15:54:49 -0700
commit189a31e6287781e03a874b13e27dedefe2beedf3 (patch)
treee151365d584ea12cadd06b1114492cef620cbdc4 /include/onepoll.php
parente8b9b8a403f4b13ed1548c3a8e616cadcd65e43e (diff)
downloadvolse-hubzilla-189a31e6287781e03a874b13e27dedefe2beedf3.tar.gz
volse-hubzilla-189a31e6287781e03a874b13e27dedefe2beedf3.tar.bz2
volse-hubzilla-189a31e6287781e03a874b13e27dedefe2beedf3.zip
If a contact has had delivery issues in the last 15 minutes, send new posts straight to the queue
and don't even try to connect. Also defer polling for stuck contacts. Should reduce the number of stuck processes trying to connect with dead or dying servers significantly.
Diffstat (limited to 'include/onepoll.php')
-rw-r--r--include/onepoll.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/onepoll.php b/include/onepoll.php
index 42bce0f68..d80bf9780 100644
--- a/include/onepoll.php
+++ b/include/onepoll.php
@@ -25,6 +25,7 @@ function onepoll_run($argv, $argc){
require_once('include/email.php');
require_once('include/socgraph.php');
require_once('include/pidfile.php');
+ require_once('include/queue_fn.php');
load_config('config');
load_config('system');
@@ -54,6 +55,9 @@ function onepoll_run($argv, $argc){
return;
}
+ if(was_recently_delayed($contact_id))
+ return;
+
$d = datetime_convert();
// Only poll from those with suitable relationships,