diff options
author | Korhonen Sami (Samlink) <k847259@ubuntu.saminet.fi> | 2020-07-09 21:42:27 +0300 |
---|---|---|
committer | Korhonen Sami (Samlink) <k847259@ubuntu.saminet.fi> | 2020-07-09 22:17:27 +0300 |
commit | 324a02ec609f24aaba923a96266657d125228033 (patch) | |
tree | a5a61e0709d2c164734778b9d6248de4c86ce7c7 /pkg/api/server/handler_api.go | |
parent | 8b07ae32787ce61717b94aa7e5cc6ee02f4efa1d (diff) | |
download | podman-324a02ec609f24aaba923a96266657d125228033.tar.gz podman-324a02ec609f24aaba923a96266657d125228033.tar.bz2 podman-324a02ec609f24aaba923a96266657d125228033.zip |
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>
Diffstat (limited to 'pkg/api/server/handler_api.go')
-rw-r--r-- | pkg/api/server/handler_api.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/api/server/handler_api.go b/pkg/api/server/handler_api.go index b0fd932ba..53fe8952b 100644 --- a/pkg/api/server/handler_api.go +++ b/pkg/api/server/handler_api.go @@ -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) |