ebkalderon / tower-lsp

Language Server Protocol implementation written in Rust
Apache License 2.0
951 stars 54 forks source link

how to shutdown server safely? #419

Open reymondzzzz opened 1 month ago

reymondzzzz commented 1 month ago

I have http and lsp server in one app. Http in main thread, lsp in tokio::spawn. There is signal handler for graceful-shutdown, but when I abort tokio::spawn with lsp, lsp-server doesn't shutdown. How could I do that safely?