OStatus feedsub fixlets:

- actually udpate feedsub.last_update when we get a new PuSH update in
- move incoming PuSH processing to a queue handler to minimize time spent before POST return, as recommended by PuSH spec. When queues are disabled this'll still be handled immediately.
This commit is contained in:
Brion Vibber
2010-02-21 13:40:59 -08:00
parent 10f6c023f4
commit 5349aa420e
4 changed files with 70 additions and 2 deletions

View File

@@ -60,9 +60,14 @@ class PushCallbackAction extends Action
$post = file_get_contents('php://input');
// @fixme Queue this to a background process; we should return
// Queue this to a background process; we should return
// as quickly as possible from a distribution POST.
$feedsub->receive($post, $hmac);
// If queues are disabled this'll process immediately.
$data = array('feedsub_id' => $feedsub->id,
'post' => $post,
'hmac' => $hmac);
$qm = QueueManager::get();
$qm->enqueue($data, 'pushinput');
}
/**