erobot opened a new pull request, #131:
URL: https://github.com/apache/pulsar-client-cpp/pull/131

   ### Motivation
   
   Close broker producer created after producer close to prevent producers from 
keeping alive in broker.
   
   ### Modifications
   
   * Close broker producer created after producer close
   * Use mutex to prevent race condition. handleCreateProducer() and 
closeAsync() should be low frequency operations and using mutex here should not 
affect performance.
   
   ### Verifying this change
   
   - [x] Make sure that the change passes the CI checks.
   
   This change added tests and can be verified as follows:
   * Added unit test ProducerTest.testCloseProducerBeforeCreated
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc-required` 
   (Your PR needs to update docs and you will update later)
   
   - [x] `doc-not-needed` 
   bug fix only
   
   - [ ] `doc` 
   (Your PR contains doc changes)
   
   - [ ] `doc-complete`
   (Docs have been already added)
   


-- 
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]

Reply via email to