akka/akka-http

Server Request timeout response is delivered out of band

開放

#2,184 建立於 2018年8月31日

 (4 則留言) (0 個反應) (0 位負責人)Scala (598 個分叉)batch import
1 - triageddiscusshelp wantedt:server

倉庫指標

星標
 (1,311 顆星)
PR 合併指標
 (平均合併 1天 10小時) (30 天內合併 2 個 PR)

描述

Seen in the forums here: https://discuss.lightbend.com/t/akka-http-mapresponse-ignores-some-responses/1975/6

Intuitively request timeouts happens while in the routing tree, but actually that's not how they are implemented, which means that for example mapResponse does not also transform the request timeout response if the timeout hits.

Can we improve, and make mapResponse also map timeout responses out of the box, or something else that makes it more intuitive combining a route with the timeout?

If not, can we use documentation to make it more clear that it happens at a lower level?

貢獻者指南