Skip to content

Commit

Permalink
cargo-shuttle: fix address in use error when service panicked in a pr…
Browse files Browse the repository at this point in the history
…evious run (#805)

* runtime & proto: teardown idle runtime in case...

...of service panics.

* cargo-shuttle: abort all runtimes when one fails during a...

...local run.

* cargo-shuttle: added sigint and sigterm handlers

* proto: remove kill_on_drop flag

* cargo-shuttle: fix comments

* runtime: remove leftovers

* cargo-shuttle: extract stop_runtime logic in a function

* proto: add kill_on_drop flag again

* cargo-shuttle: fix again one service panic case

* runtime(tests): fix bind_panic

* cargo-shuttle: handle stop requests error gracefully

* cargo-shuttle: handle stopping error gracefully...

...for service that panics

* cargo-shuttle: clarified logging in case runtime stopping errors

* cargo-shuttle: change log level
  • Loading branch information
iulianbarbu authored and oddgrd committed Apr 27, 2023
1 parent 99c3ff3 commit e1bf7fa
Show file tree
Hide file tree
Showing 5 changed files with 391 additions and 192 deletions.
2 changes: 1 addition & 1 deletion cargo-shuttle/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ serde_json = { workspace = true }
sqlx = { workspace = true, features = ["runtime-tokio-native-tls", "postgres"] }
strum = { workspace = true }
tar = { workspace = true }
tokio = { workspace = true, features = ["macros"] }
tokio = { workspace = true, features = ["macros", "signal"] }
tokio-tungstenite = { version = "0.18.0", features = ["native-tls"] }
toml = { workspace = true }
toml_edit = { workspace = true }
Expand Down
Loading

0 comments on commit e1bf7fa

Please sign in to comment.