Skip to content

Commit

Permalink
Dev (#49)
Browse files Browse the repository at this point in the history
* doMultiCall bugfix
* doMultiCall bugfix version
* 代码调整
  • Loading branch information
cocowh authored Aug 25, 2023
1 parent 4a12f0f commit fa34fd8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Motan/Endpointer.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,15 @@ protected function _doSend(\Motan\Request $request)

protected function _doRecv($resp_obj = NULL)
{
$resp_msg = $this->_connection_obj->read();
$resp_msg = $this->_doRecvRespMsg();
return $this->_parseRespMsg($resp_msg, $resp_obj);
}

protected function _doRecvRespMsg() {
return $this->_connection_obj->read();
}

protected function _parseRespMsg($resp_msg, $resp_obj = NULL) {
$resp_body = $resp_msg->getBody();
if ($resp_msg->getHeader()->isGzip()) {
$resp_body = zlib_decode($resp_body);
Expand Down

0 comments on commit fa34fd8

Please sign in to comment.