-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed data is too large, cannot exceed buffer size.
- Loading branch information
Showing
2 changed files
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* * | ||
* hprose swoole http client library for php 5.3+ * | ||
* * | ||
* LastModified: Nov 16, 2016 * | ||
* LastModified: Nov 25, 2016 * | ||
* Author: Ma Bingyao <[email protected]> * | ||
* * | ||
\**********************************************************/ | ||
|
@@ -38,7 +38,6 @@ class Client extends \Hprose\Client { | |
public $maxPoolSize = 10; | ||
public $header = array(); | ||
private $trans; | ||
// private $requests = array(); | ||
public function __construct($uris = null) { | ||
parent::__construct($uris); | ||
$this->trans = new Transporter($this); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* * | ||
* hprose swoole socket client library for php 5.3+ * | ||
* * | ||
* LastModified: Nov 16, 2016 * | ||
* LastModified: Nov 25, 2016 * | ||
* Author: Ma Bingyao <[email protected]> * | ||
* * | ||
\**********************************************************/ | ||
|
@@ -39,7 +39,7 @@ class Client extends \Hprose\Client { | |
public function __construct($uris = null) { | ||
parent::__construct($uris); | ||
swoole_async_set(array( | ||
"socket_buffer_size" => 2 * 1024 * 1024 * 1024, | ||
"socket_buffer_size" => 2 * 1024 * 1024 * 1024 - 1, | ||
"socket_dontwait" => false | ||
)); | ||
} | ||
|