mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
Fix: Correct connection counters for hijacked connections
This patch fixes connection counters for v2 endpoints Idletracker was moved to a new package to prevent package cycle. Hijacking code still remains in wrong place and should be moved later to isolated package Signed-off-by: Sami Korhonen <skorhone@gmail.com>
This commit is contained in:
@ -37,6 +37,7 @@ func (s *APIServer) APIHandler(h http.HandlerFunc) http.HandlerFunc {
|
||||
c := context.WithValue(r.Context(), "decoder", s.Decoder) //nolint
|
||||
c = context.WithValue(c, "runtime", s.Runtime) //nolint
|
||||
c = context.WithValue(c, "shutdownFunc", s.Shutdown) //nolint
|
||||
c = context.WithValue(c, "idletracker", s.idleTracker) //nolint
|
||||
r = r.WithContext(c)
|
||||
|
||||
h(w, r)
|
||||
|
Reference in New Issue
Block a user