diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-04-13 20:28:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-13 20:28:42 +0200 |
commit | d7695dd957b162ed24c807dc91200fe1abaecff1 (patch) | |
tree | 449aa4d72af1ab130561b12935a5aeb8f1b2a5c6 /pkg/api/server/handler_api.go | |
parent | 465b4bc563b274ec166868aae079a65ee0284b1d (diff) | |
parent | f8892e7c6b07cb77979199cf0474ac2af80829fd (diff) | |
download | podman-d7695dd957b162ed24c807dc91200fe1abaecff1.tar.gz podman-d7695dd957b162ed24c807dc91200fe1abaecff1.tar.bz2 podman-d7695dd957b162ed24c807dc91200fe1abaecff1.zip |
Merge pull request #5777 from jwhonce/issues/5599
Refactor service idle support
Diffstat (limited to 'pkg/api/server/handler_api.go')
-rw-r--r-- | pkg/api/server/handler_api.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/pkg/api/server/handler_api.go b/pkg/api/server/handler_api.go index 30a1680c9..7a7db12f3 100644 --- a/pkg/api/server/handler_api.go +++ b/pkg/api/server/handler_api.go @@ -19,7 +19,7 @@ func (s *APIServer) APIHandler(h http.HandlerFunc) http.HandlerFunc { if err != nil { buf := make([]byte, 1<<20) n := runtime.Stack(buf, true) - log.Warnf("Recovering from podman handler panic: %v, %s", err, buf[:n]) + log.Warnf("Recovering from API handler panic: %v, %s", err, buf[:n]) // Try to inform client things went south... won't work if handler already started writing response body utils.InternalServerError(w, fmt.Errorf("%v", err)) } @@ -27,12 +27,7 @@ func (s *APIServer) APIHandler(h http.HandlerFunc) http.HandlerFunc { // Wrapper to hide some boiler plate fn := func(w http.ResponseWriter, r *http.Request) { - // Connection counting, ugh. Needed to support the sliding window for idle checking. - s.ConnectionCh <- EnterHandler - defer func() { s.ConnectionCh <- ExitHandler }() - - log.Debugf("APIHandler -- Method: %s URL: %s (conn %d/%d)", - r.Method, r.URL.String(), s.ActiveConnections, s.TotalConnections) + log.Debugf("APIHandler -- Method: %s URL: %s", r.Method, r.URL.String()) if err := r.ParseForm(); err != nil { log.Infof("Failed Request: unable to parse form: %q", err) |