Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Commit

Permalink
[patch] memory leak bugfix unclosed error channel on http handler
Browse files Browse the repository at this point in the history
Signed-off-by: kpango <i.can.feel.gravity@gmail.com>
  • Loading branch information
kpango authored and kevindiu committed Jan 20, 2020
1 parent 6e404d8 commit d011856
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions router/debug_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func routing(m []string, t time.Duration, h handler.Func) http.Handler {
ech := make(chan error)
go func() {
ech <- h(w, r.WithContext(ctx))
close(ech)
}()

for {
Expand Down

0 comments on commit d011856

Please sign in to comment.