mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
Remove resize race condition
Since podman-remote resize requests can come in at random times, this generates a real potential for race conditions. We should only be attempting to resize TTY on running containers, but the containers can go from running to stopped at any time, and returning an error to the caller is just causing noice. This change will basically ignore requests to resize terminals if the container is not running and return the caller to success. All other callers will still return failure. Fixes: https://github.com/containers/podman/issues/9831 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -587,6 +587,11 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
||||
// type: integer
|
||||
// required: false
|
||||
// description: Width to set for the terminal, in characters
|
||||
// - in: query
|
||||
// name: running
|
||||
// type: boolean
|
||||
// required: false
|
||||
// description: Ignore containers not running errors
|
||||
// produces:
|
||||
// - application/json
|
||||
// responses:
|
||||
|
Reference in New Issue
Block a user