-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
4 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 socket FullDuplexTransporter class for php 5.3+ * | ||
* * | ||
* LastModified: Jul 12, 2016 * | ||
* LastModified: Jul 30, 2016 * | ||
* Author: Ma Bingyao <[email protected]> * | ||
* * | ||
\**********************************************************/ | ||
|
@@ -56,7 +56,7 @@ protected function asyncReadError($o, $stream, $index) { | |
} | ||
unset($o->queue[$stream_id]); | ||
unset($o->responses[$stream_id]); | ||
fclose($stream); | ||
@fclose($stream); | ||
$this->removeStream($stream, $o->readpool); | ||
$this->removeStream($stream, $o->writepool); | ||
} | ||
|
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 socket HalfDuplexTransporter class for php 5.3+ * | ||
* * | ||
* LastModified: Jul 12, 2016 * | ||
* LastModified: Jul 30, 2016 * | ||
* Author: Ma Bingyao <[email protected]> * | ||
* * | ||
\**********************************************************/ | ||
|
@@ -40,7 +40,7 @@ protected function asyncReadError($o, $stream, $index) { | |
$o->results[$index]->reject($this->getLastError('response read error')); | ||
$this->free($o, $index); | ||
unset($o->responses[(integer)$stream]); | ||
fclose($stream); | ||
@fclose($stream); | ||
$this->removeStream($stream, $o->readpool); | ||
} | ||
protected function getBodyLength($stream) { | ||
|