You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/08/10 08:59:46 UTC
[GitHub] [pulsar-client-go] leizhiyuan opened a new issue #589: incorrect close of connection
leizhiyuan opened a new issue #589:
URL: https://github.com/apache/pulsar-client-go/issues/589
#### Expected behavior
only close cnx,not connection
```
// Close closes the connection by
// closing underlying socket connection and closeCh.
// This also triggers callbacks to the ConnectionClosed listeners.
func (c *connection) Close() {
c.closeOnce.Do(func() {
c.Lock()
```
when invoke close , It will not be executed twice.
#### Actual behavior
Tell us what happens instead
#### Steps to reproduce
How can we reproduce the issue
#### System configuration
**Pulsar version**: x.y
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar-client-go] leizhiyuan closed issue #589: incorrect close of connection
Posted by GitBox <gi...@apache.org>.
leizhiyuan closed issue #589:
URL: https://github.com/apache/pulsar-client-go/issues/589
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org