wagi icon indicating copy to clipboard operation
wagi copied to clipboard

Starting Wagi with -l causes panic

Open simongdavies opened this issue 4 years ago • 1 comments

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.

simongdavies avatar Jul 06 '21 14:07 simongdavies

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.

radu-matei avatar Jul 06 '21 17:07 radu-matei