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

question about how to connect again if don't stop io #170

Open
gebogebo opened this issue May 26, 2017 · 1 comment
Open

question about how to connect again if don't stop io #170

gebogebo opened this issue May 26, 2017 · 1 comment

Comments

@gebogebo
Copy link

in the examples, if meet exceptions, io stop is used. But if I don't want to stop the io and connect again after a while, how to release the transport, ws_clinet quickly.

if the server runs after my program, afeter several times, it will connect successful.
But if i use io stop, it will connect ok at the first time.

@gebogebo
Copy link
Author

Now, i finished my program. it can run well if the target server is running at the same time.
But if I don't start the server , and i will use the same io to connect the server every 10 seconds, about 400 tims, my program crash with exception thown, i don't get it why.
If i run io.stop everytime when connection failed, my program will run well.
How can i keep connecting every 10 seconds while i don't stop the io?

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