]> source.dussan.org Git - gitea.git/commit
Add timeout to writing to responses (#15831)
authorzeripath <art27@cantab.net>
Fri, 14 May 2021 12:26:03 +0000 (13:26 +0100)
committerGitHub <noreply@github.com>
Fri, 14 May 2021 12:26:03 +0000 (13:26 +0100)
commit1a5659943eba747b05efe564ac57a942b0424f91
treedd3dd41544efb52baf716449ec84088ec0a5330a
parent2d87a84709cb0ee89b2fbafe65718bd61d9effef
Add timeout to writing to responses (#15831)

In #15826 it has become apparent that there are a few occasions when a response can
hang during writing, and because there is no timeout go will happily just block
interminably. This PR adds a fixed 5 second timeout to all writes to a connection.

Fix #15826

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/graceful/server.go