-
Notifications
You must be signed in to change notification settings - Fork 184
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
Old socket listeners not destroyed when I connect a new socket with previous ip and port #405
Comments
I am facing same issue |
fixed code |
Thanks, it works because of the second connection becomes new connection.But I expect reuse of connection to improve performance😭.Now I use 'if (!completer.isComplete)' to solve it. |
here is my socket client code. and when socket error, I try to create a new Socket like this.
when socket error again, the onError Event called twice. The first time that event called,client's hashCode equals destroyed client's hashcode.
Here is my dispose code:
The text was updated successfully, but these errors were encountered: