Gilthoniel opened a new pull request, #1275:
URL: https://github.com/apache/pulsar-client-go/pull/1275

   Fixes #1274 
   
   ### Motivation
   
   A race can happen while a consumer or a producer is registering itself to 
the connection to later receive closing notification.
   
   ### Modifications
   
   This pull request changes the concurrency model of the connection to 
properly lock the different actors between the closing procedure and the 
registration of handlers and listeners. After this, a caller will properly 
check the state of the connection and aborts if closed, and it will be certain 
that it will not be registered in concurrency with a closing.
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   This change is already covered by existing tests.
   
   ### Does this pull request potentially affect one of the following parts:
   
   none
   
   ### Documentation
   
   none
   


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