From 1c1ef5651eb0983b9f572841dc4c60a7ee3a5d71 Mon Sep 17 00:00:00 2001 From: Ma Bingyao Date: Sun, 20 Aug 2017 11:53:19 +0800 Subject: [PATCH] Changed default subscribe timeout to 5 minutes. --- src/Hprose/Client.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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();