ifplusor commented on issue #351:
URL: 
https://github.com/apache/rocketmq-client-cpp/issues/351#issuecomment-814685578


   I analyze your log, there are some things wrong.
   
   
![image](https://user-images.githubusercontent.com/9999114/113828237-c03d0a80-97b6-11eb-8cb4-d2f38a9e14e8.png)
   
![image](https://user-images.githubusercontent.com/9999114/113828329-d64acb00-97b6-11eb-86b2-d1ae94f23615.png)
   
   Could you dump the body of pull response in 
`TcpRemotingClient::processResponseCommand()`?
   
   ```c++
   void 
TcpRemotingClient::processResponseCommand(std::unique_ptr<RemotingCommand> 
responseCommand,
                                                  TcpTransportPtr channel) {
     int opaque = responseCommand->opaque();
     auto responseFuture = popResponseFuture(channel, opaque);
     if (responseFuture != nullptr) {
       int code = responseFuture->request_code();
       LOG_DEBUG_NEW("processResponseCommand, opaque:{}, request code:{}, 
server:{}", opaque, code,
                     channel->getPeerAddrAndPort());
   
       if (code == PULL_MESSAGE) {
         auto body = responseCommand->body();
         LOG_INFO_NEW("body of pull response: {}", 
UtilAll::bytes2string(body->array(), body->size()));
       }
   
       if (responseFuture->hasInvokeCallback()) {
         responseFuture->setResponseCommand(std::move(responseCommand));
         // bind shared_ptr can save object's life
         
handle_executor_.submit(std::bind(&ResponseFuture::executeInvokeCallback, 
responseFuture));
       } else {
         responseFuture->putResponse(std::move(responseCommand));
       }
     } else {
       LOG_DEBUG_NEW("responseFuture was deleted by timeout of opaque:{}, 
server:{}", opaque,
                     channel->getPeerAddrAndPort());
     }
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to