Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add timeout to writing to responses (go-gitea#15831)
Backport go-gitea#15831 In go-gitea#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 go-gitea#15826 Signed-off-by: Andrew Thornton <art27@cantab.net>
- Loading branch information