Skip to content

Commit

Permalink
Changed default subscribe timeout to 5 minutes.
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Aug 20, 2017
1 parent e5902f2 commit 1c1ef56
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Hprose/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* *
* hprose client class for php 5.3+ *
* *
* LastModified: Jul 14, 2017 *
* LastModified: Aug 20, 2017 *
* Author: Ma Bingyao <[email protected]> *
* *
\**********************************************************/
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 1c1ef56

Please sign in to comment.