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]: How to terminate the main loop #18

Open
urban-1 opened this issue Feb 1, 2018 · 0 comments
Open

[Question]: How to terminate the main loop #18

urban-1 opened this issue Feb 1, 2018 · 0 comments

Comments

@urban-1
Copy link

urban-1 commented Feb 1, 2018

Hi there,

I have been using this web server for a while and works for what I need, however, when I am restarting my main app too fast I cannot re-bind the port/socket. The TCP is in *_WAIT state:

$ netstat -tn | grep 8282
tcp4       0      0  127.0.0.1.8282         127.0.0.1.63878        FIN_WAIT_2
tcp4       0      0  127.0.0.1.63878        127.0.0.1.8282         CLOSE_WAIT
tcp4       0      0  127.0.0.1.63877        127.0.0.1.8282         TIME_WAIT

Is there a way to gracefully terminate the server? Am I doing something wrong?

Thanks

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