ifplusor edited a comment on issue #351: URL: https://github.com/apache/rocketmq-client-cpp/issues/351#issuecomment-814685578
I analyze your log, there are some things wrong.   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_ERROR_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]
