Skip to content

Commit

Permalink
ADD: ignore stack trace of http.ErrAbortHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
whoisnian committed Feb 9, 2024
1 parent 804ced9 commit f65c9d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logger/httpd.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ func (l *Logger) Relay(store *httpd.Store) {
}
}()
defer func() {
// https://cs.opensource.google/go/go/+/refs/tags/go1.21.1:src/net/http/server.go;l=1865
if err := recover(); err != nil {
// https://cs.opensource.google/go/go/+/refs/tags/go1.22.0:src/net/http/server.go;l=1894
if err := recover(); err != nil && err != http.ErrAbortHandler {
const size = 64 << 10
buf := make([]byte, size)
buf = buf[:runtime.Stack(buf, false)]
Expand Down

0 comments on commit f65c9d1

Please sign in to comment.