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

connection don´t close when server program stopped #8

Open
solick opened this issue Mar 23, 2015 · 1 comment
Open

connection don´t close when server program stopped #8

solick opened this issue Mar 23, 2015 · 1 comment

Comments

@solick
Copy link

solick commented Mar 23, 2015

Hi,

just encountered a strange problem:

I have a server-client connection via json-socket. Communication is running fine. I added on client side a method to connect again to server once the "close" event or "error" event has raised. The connection establish again but now i receive the packets twice on client side. I can reproduce this and each time i stopp and restart the server, the number of received packages increase by one. I added a destroy function to the json-socket but this don´t help. Any suggestions?

KR Solick

@solick
Copy link
Author

solick commented Apr 4, 2015

I tried a couple of thinks and finally found out, that the message event will not be deregistrated somehow. Making sure, that the message event will only be registered one (eg. by setting a flag) solves my problem. But i´m not sure if this is a bug or a feature ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant