akka/akka-http

Server Request timeout response is delivered out of band

オープン

#2,184 opened on 2018/08/31

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)Scala (598 件のフォーク)batch import
1 - triageddiscusshelp wantedt:server

Repository metrics

Stars
 (1,311 個のスター)
PR merge metrics
 (平均マージ 1d 10h) (30d で 2 merged PRs)

説明

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?

コントリビューターガイド