mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-14 12:12:12 +08:00
treat http.ErrAbortHandler as broken pipe too
This commit is contained in:
parent
7742ff50e0
commit
c8af93d50b
@ -66,6 +66,9 @@ func CustomRecoveryWithWriter(out io.Writer, handle RecoveryFunc) HandlerFunc {
|
||||
}
|
||||
}
|
||||
}
|
||||
if err == http.ErrAbortHandler {
|
||||
brokenPipe = true
|
||||
}
|
||||
if logger != nil {
|
||||
stack := stack(3)
|
||||
httpRequest, _ := httputil.DumpRequest(c.Request, false)
|
||||
|
Loading…
x
Reference in New Issue
Block a user