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

Starting Wagi with -l causes panic #91

Open
simongdavies opened this issue Jul 6, 2021 · 1 comment
Open

Starting Wagi with -l causes panic #91

simongdavies opened this issue Jul 6, 2021 · 1 comment

Comments

@simongdavies
Copy link
Member

Starting Wagi multiple times on Windows (not checked linux or macos) can result in the following output and wagi not listening on the port specified in -l arg

[2021-07-06T14:15:31Z INFO wagi] Setting default host to localhost:3000
thread 'main' panicked at 'error binding to 127.0.0.1:32768: error creating server listener: Only one usage of each socket address (protocol/network address/port) is normally permitted. (os error 10048)', C:\Users\sdavies.cargo\registry\src\github.com-1ecc6299db9ec823\hyper-0.14.2\src\server\server.rs:65:13

Notes:

Wagi does not terminate when this panic occurs
The port that it complains about does not seem to be in use (but has been previously)
Seems like after some time (TIME_WAIT?) port becomes available.

@radu-matei
Copy link
Member

I am not seeing this error on Windows.
Besides not being able to pass localhost, and having to pass 127.0.0.1, starting it with the -l flag appears to work fine for me.

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

2 participants