Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCPClient will crash when we do 'Disconnect' and destruct the object immediately #17

Closed
zieckey opened this issue Mar 22, 2017 · 1 comment
Labels

Comments

@zieckey
Copy link
Collaborator

zieckey commented Mar 22, 2017

The following code will crash at evpp/tcp_client.cc:26: evpp::TCPClient::~TCPClient(): Assertion c->IsDisconnected()' failed.`

std::shared_ptr<evpp::TCPClient> client;
client->Connect();
... After client has connected.
client->Disconnect();
client.reset();
@zieckey zieckey added the bug label Mar 22, 2017
@zieckey zieckey changed the title evnsq crash : when the nsqd is exiting and we are putting a message to nsqd TCPClient will crash when we do 'Disconnect' and descrute the object immediately Mar 22, 2017
zieckey added a commit that referenced this issue Mar 24, 2017
@zieckey
Copy link
Collaborator Author

zieckey commented Mar 24, 2017

Fixed.

@zieckey zieckey closed this as completed Mar 24, 2017
zieckey added a commit that referenced this issue Mar 25, 2017
@zieckey zieckey changed the title TCPClient will crash when we do 'Disconnect' and descrute the object immediately TCPClient will crash when we do 'Disconnect' and destruct the object immediately Mar 26, 2017
zieckey added a commit that referenced this issue Apr 27, 2017
zieckey added a commit that referenced this issue May 20, 2017
zieckey added a commit that referenced this issue May 20, 2017
@acyi acyi mentioned this issue Sep 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant