We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 494746e6 authored by mattl's avatar mattl

Minor PuSH comment and debug stuff

parent a5fd4fde
......@@ -82,7 +82,7 @@ class PushCallbackAction extends Action
$mode = $this->arg('hub_mode');
$topic = $this->arg('hub_topic');
$challenge = $this->arg('hub_challenge');
$lease_seconds = $this->arg('hub_lease_seconds'); // Must be >0 for PuSH 0.4!
$lease_seconds = $this->arg('hub_lease_seconds'); // Must be >0 for PuSH 0.4! And only checked on mode='subscribe' of course
common_log(LOG_INFO, __METHOD__ . ": sub verification mode: $mode topic: $topic challenge: $challenge lease_seconds: $lease_seconds");
if ($mode != 'subscribe' && $mode != 'unsubscribe') {
......
......@@ -118,7 +118,6 @@ class PushHubAction extends Action
$sub->secret = $secret;
}
if ($lease) {
common_debug('PuSH hub setting dataobject lease to:'._ve(intval($lease)));
$sub->setLease(intval($lease));
}
}
......
......@@ -84,7 +84,7 @@ class HubSub extends Managed_DataObject
common_debug('PuSH hub got requested lease_seconds=='._ve($length));
assert(is_int($length));
$min = 86400;
$min = 86400; // 3600*24 (one day)
$max = 86400 * 30;
if ($length == 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment