Server never releases port when killed when using cargo-watch #2975
Labels
A-web
project: actix-web
C-bug-upstream
Category: bug in a dependency (including actix-net)
N/A
Not applicable or remedied without code change.
I am currently attempting to develop a server with actix-web using cargo watch. I am using the simple invocation of
cargo watch -x run
. I am new to both actix-web and rust so I may be doing something obviously incorrect here and I apologize if it is something obvious.Expected Behavior
The server should correctly be hot-reloaded on a file save when a change occurs.
Current Behavior
The rebuild is initiated but then hangs when starting the server again. The reported error is address in use. Right now I have a minimal example as my current stage of implementation is stubbing out an API.
Steps to Reproduce (for bugs)
An example of how I am building each endpoint
An example of a service implementation
The main function used to run the server
Your Environment
Linux LTS: 5.15.91-4-lts
rustc -V
): rustc 1.66.0 (69f9c33d7 2022-12-12)The text was updated successfully, but these errors were encountered: