]> source.dussan.org Git - gitea.git/commit
If rendering has failed due to a net.OpError stop rendering (#18642)
authorzeripath <art27@cantab.net>
Sun, 6 Feb 2022 19:28:25 +0000 (19:28 +0000)
committerGitHub <noreply@github.com>
Sun, 6 Feb 2022 19:28:25 +0000 (20:28 +0100)
commita6e657e99979f94d1d663a0bc2b7945f3c1018dc
treed378100e21399694eba7b3d51e7206fd186a5c30
parent3043eb36bfcd7ddf29202b958b91942826a8182b
If rendering has failed due to a net.OpError stop rendering (#18642)

When a net.OpError occurs during rendering the underlying connection is essentially
dead and therefore attempting to render further data will only cause further errors.

Therefore in serverErrorInternal detect if the passed in error is an OpError and
if so do not attempt any further rendering.

Fix #18629

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