Closed Kobus-Smit closed 3 years ago
Hi @zapov
I've deployed a Windows service with Revenj.AspNetCore 1.6 and Kestrel and noticed it hangs when stopping the service.
I could then also replicate it by running AspNetTutorialLite from Visual Studio and pressing Ctrl+C.
Application is shutting down... but the process is not killed.
Application is shutting down...
It appears only to happen if a Revenj service method was called, for example if you comment launchBrowser
https://github.com/Kobus-Smit/revenj-examples/blob/75d6543f142d81a0483d1db74d9a6f656b3b8485/DotNetCore/netcoreapp3.1/AspNetTutorialLite/Properties/launchSettings.json#L22
and run and Ctrl+C, then it works as expected:
Do you perhaps have any ideas or workarounds?
It seems Thread.Abort() no longer works :/
Thread.Abort()
Replaced its usage in the DB driver so it seems fine. It would be great if you can test out the latest version before I make a new release
LGTM!
Hi @zapov
I've deployed a Windows service with Revenj.AspNetCore 1.6 and Kestrel and noticed it hangs when stopping the service.
I could then also replicate it by running AspNetTutorialLite from Visual Studio and pressing Ctrl+C.
Application is shutting down...
but the process is not killed.It appears only to happen if a Revenj service method was called, for example if you comment launchBrowser
https://github.com/Kobus-Smit/revenj-examples/blob/75d6543f142d81a0483d1db74d9a6f656b3b8485/DotNetCore/netcoreapp3.1/AspNetTutorialLite/Properties/launchSettings.json#L22
and run and Ctrl+C, then it works as expected:
Do you perhaps have any ideas or workarounds?