recvPacket($timeout); if ($data === '') { // RpcConnection: When the next time the connection is taken out of the connection pool, it will reconnect to the target service. // Client: It will reconnect to the target service in the next request. $client->close(); throw new RecvException('Connection is closed. ' . $client->errMsg, $client->errCode); } if ($data === false) { $client->close(); throw new RecvException('Error receiving data, errno=' . $client->errCode . ' errmsg=' . $client->errMsg, $client->errCode); } return $data; } }