akka/akka-http

Timeout for connections half-closed by peer

開放

#4,105 建立於 2022年4月12日

 (0 則留言) (0 個反應) (0 位負責人)Scala (598 個分叉)batch import
1 - triagedhelp wantednice-to-have (low-prio)t:coret:server

倉庫指標

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

描述

As observed in #1977, a server connection is allowed to be half-closed by the peer. That means it might stay open indefinitely if the server has the idle-timeout disabled and the server never tries to send something again.

Using a idle-timeout is a working solution to this case.

For busy servers, it might be a problem to keep connections open for the potentially long idle-timeout. For these cases, it might make sense to introduce another timeout that governs how long to keep open a connection on the server if the client has closed its side. This is an optimization for a very particular case, so for now we treat it with low priority.

貢獻者指南