Skip to content

Commit

Permalink
Fixed data is too large, cannot exceed buffer size.
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Nov 25, 2016
1 parent 52ecaec commit 02b60bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Hprose/Swoole/Http/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]> *
* *
\**********************************************************/
Expand All @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/Hprose/Swoole/Socket/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]> *
* *
\**********************************************************/
Expand All @@ -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
));
}
Expand Down

0 comments on commit 02b60bc

Please sign in to comment.