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

Clean up socket on shutdown #80

Open
ecordell opened this issue Apr 23, 2016 · 1 comment
Open

Clean up socket on shutdown #80

ecordell opened this issue Apr 23, 2016 · 1 comment

Comments

@ecordell
Copy link
Contributor

ecordell commented Apr 23, 2016

Right now if jwtproxy shuts itself down (because it can't publish a key, for example), it leaves the socket it was listening on behind, which causes an error when it restarts later. (Right now I'm manually cleaning it up in the init file)

Also I noticed that we're calling close on the file descriptor rather then on the "socket" object (which does a tiny bit of additional cleanup)

@zhangchl007
Copy link

Since this issue exits for long time, hope it will be fixed soon.
time="2020-02-29T10:01:52Z" level=error msg="Failed to start reverse proxy: listen unix /tmp/jwtproxy_secscan.sock: bind: address already in use"

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

No branches or pull requests

3 participants