GracefulTermination does not take response entity streams into account #3209
Labels
1 - triaged
Tickets that are safe to pick up for contributing in terms of likeliness of being accepted
bug
t:core
Issues related to the akka-http-core module
t:server
Issues related to the HTTP server
As observed in #3139 (comment), graceful termination does not take response entity streams into account. I.e. those streams could still be running when the deadline triggers. What currently happens is that due to
akka-http/akka-http-core/src/main/scala/akka/http/impl/engine/server/ServerTerminator.scala
Line 264 in 27d987f
server.stream-cancellation-delay
) also cancellation arrives at the controller stage in which case the rest of the stack is completed. There are a few issues with that:CloseDelimited
entities, the stream will otherwise be silently truncated.stream-cancellation-delay
orlingerTimeout
.The text was updated successfully, but these errors were encountered: