erobot commented on code in PR #131:
URL: https://github.com/apache/pulsar-client-cpp/pull/131#discussion_r1036673851
##########
lib/ProducerImpl.cc:
##########
@@ -180,11 +182,18 @@ void ProducerImpl::handleCreateProducer(const
ClientConnectionPtr& cnx, Result r
if (state != Ready && state != Pending) {
LOG_DEBUG("Producer created response received but producer already
closed");
failPendingMessages(ResultAlreadyClosed, false);
+ if (result == ResultOk || result == ResultTimeout) {
+ int requestId = client_.lock()->newRequestId();
Review Comment:
May not be guaranteed. I copy the codes below and will add a check for both.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]