diff --git a/src/Hprose/Client.php b/src/Hprose/Client.php index 33bc794d..06081f2e 100644 --- a/src/Hprose/Client.php +++ b/src/Hprose/Client.php @@ -14,7 +14,7 @@ * * * hprose client class for php 5.3+ * * * - * LastModified: Jul 14, 2017 * + * LastModified: Aug 20, 2017 * * Author: Ma Bingyao * * * \**********************************************************/ @@ -661,7 +661,8 @@ public function subscribe($name, $id = null, $callback = null, $timeout = null, }); return; } - if (!is_int($timeout)) $timeout = $this->timeout; + // Default subscribe timeout is 5 minutes. + if (!is_int($timeout)) $timeout = 300000; $topic = $this->getTopic($name, $id); if ($topic === null) { $topic = new stdClass();