Closed mivanilov closed 6 months ago
@mivanilov thank you for creating this ticket! It'll allow me to keep an eye on things.
@nomisRev no actual issue here, my bad, sorry for this... I've explained it here https://youtrack.jetbrains.com/issue/KTOR-6755/HTTP-inflight-request-is-aborted-ignoring-shutdownGracePeriod#focus=Comments-27-9188264.0-0
Closing this ticket too.
Issue: http inflight request is aborted on app getting e.g. SIGTERM even though SuspendApp
preWait
is configured to be e.g. 10s.Expectation: http inflight requests are allowed to complete within
preWait
on app getting e.g. SIGTERM.Steps to reproduce: (example app code issue-suspendapp-inflight-abort.zip)
-Dio.ktor.server.engine.ShutdownHook=false
preWait
Looks like an issue is with Ktor itself as I also get the same outcome using just Ktor
embeddedServer
(also raised an issue with Ktor) Nevertheless I thought maybe Arrow community could also help investigating this issue.