Skip to content

Commit 1c1ef56

Browse files
committed
Changed default subscribe timeout to 5 minutes.
1 parent e5902f2 commit 1c1ef56

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Hprose/Client.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* *
1515
* hprose client class for php 5.3+ *
1616
* *
17-
* LastModified: Jul 14, 2017 *
17+
* LastModified: Aug 20, 2017 *
1818
* Author: Ma Bingyao <[email protected]> *
1919
* *
2020
\**********************************************************/
@@ -661,7 +661,8 @@ public function subscribe($name, $id = null, $callback = null, $timeout = null,
661661
});
662662
return;
663663
}
664-
if (!is_int($timeout)) $timeout = $this->timeout;
664+
// Default subscribe timeout is 5 minutes.
665+
if (!is_int($timeout)) $timeout = 300000;
665666
$topic = $this->getTopic($name, $id);
666667
if ($topic === null) {
667668
$topic = new stdClass();

0 commit comments

Comments
 (0)