Minor PuSH comment and debug stuff

This commit is contained in:
Mikael Nordfeldth 2016-01-13 19:24:38 +01:00
parent a5fd4fde25
commit 494746e665
3 changed files with 2 additions and 3 deletions

View File

@ -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') {

View File

@ -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));
}
}

View File

@ -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) {