arrow-kt / suspendapp

Reason about resource-safety in the same way you reason about Structured Concurrency with SuspendApp!
https://arrow-kt.github.io/suspendapp/
Apache License 2.0
74 stars 4 forks source link

HTTP inflight request is aborted ignoring preWait #116

Closed mivanilov closed 6 months ago

mivanilov commented 7 months ago

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)

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.

nomisRev commented 7 months ago

@mivanilov thank you for creating this ticket! It'll allow me to keep an eye on things.

mivanilov commented 6 months ago

@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.