forgejo/modules/context
zeripath a6e657e999
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>
2022-02-06 20:28:25 +01:00
..
access_log.go Pass down SignedUserName down to AccessLogger context (#16605) 2021-08-04 13:26:30 -04:00
api.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
api_org.go Use a standalone struct name for Organization (#17632) 2021-11-19 19:41:40 +08:00
api_test.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
auth.go Refactor auth package (#17962) 2022-01-02 21:12:35 +08:00
captcha.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
context.go If rendering has failed due to a net.OpError stop rendering (#18642) 2022-02-06 20:28:25 +01:00
csrf.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
form.go Add config options to hide issue events (#17414) 2022-01-21 18:59:26 +01:00
org.go Team permission allow different unit has different permission (#17811) 2022-01-05 11:37:00 +08:00
pagination.go Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
permission.go Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00
private.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
repo.go Automatically pause queue if index service is unavailable (#15066) 2022-01-27 10:30:51 +02:00
response.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
xsrf.go Move macaron to chi (#14293) 2021-01-26 16:36:53 +01:00
xsrf_test.go Move macaron to chi (#14293) 2021-01-26 16:36:53 +01:00