spiegel_podman/pkg/api/handlers/compat
Daniel J Walsh b557301807 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>

<MH: Fixed cherry-pick conflicts>

Signed-off-by: Matthew Heon <mheon@redhat.com>
2021-03-29 11:16:51 -04:00
..
auth.go fix use with localhost (testing) 2021-03-12 10:48:03 -08:00
changes.go bump go module to v3 2021-02-22 09:03:51 +01:00
containers.go Removing a non existing container API should return 404 2021-03-10 04:08:29 -05:00
containers_archive.go bump go module to v3 2021-02-22 09:03:51 +01:00
containers_attach.go bump go module to v3 2021-02-22 09:03:51 +01:00
containers_create.go bump go module to v3 2021-02-22 09:03:51 +01:00
containers_export.go bump go module to v3 2021-02-22 09:03:51 +01:00
containers_logs.go bump go module to v3 2021-02-22 09:03:51 +01:00
containers_pause.go bump go module to v3 2021-02-22 09:03:51 +01:00
containers_prune.go bump go module to v3 2021-02-22 09:03:51 +01:00
containers_restart.go bump go module to v3 2021-02-22 09:03:51 +01:00
containers_start.go bump go module to v3 2021-02-22 09:03:51 +01:00
containers_stats.go bump go module to v3 2021-02-22 09:03:51 +01:00
containers_stop.go podman-remote stop -time 0 does not work 2021-03-05 10:39:17 -05:00
containers_top.go bump go module to v3 2021-02-22 09:03:51 +01:00
containers_unpause.go bump go module to v3 2021-02-22 09:03:51 +01:00
events.go Fix volumes and networks list/prune filters in http api 2021-03-19 00:09:29 +01:00
exec.go bump go module to v3 2021-02-22 09:03:51 +01:00
images.go Correct compat images/create?fromImage response 2021-02-26 03:08:10 +01:00
images_build.go Merge pull request #9524 from riyad/apiv3-print-tags-when-building 2021-03-11 17:55:00 +01:00
images_history.go bump go module to v3 2021-02-22 09:03:51 +01:00
images_prune.go bump go module to v3 2021-02-22 09:03:51 +01:00
images_push.go Correct compat images/{name}/push response 2021-03-07 02:38:01 +01:00
images_remove.go bump go module to v3 2021-02-22 09:03:51 +01:00
images_save.go Refactor handler packages 2020-03-10 08:03:41 -07:00
images_search.go bump go module to v3 2021-02-22 09:03:51 +01:00
images_tag.go bump go module to v3 2021-02-22 09:03:51 +01:00
info.go bump go module to v3 2021-02-22 09:03:51 +01:00
networks.go Fix volumes and networks list/prune filters in http api 2021-03-19 00:09:29 +01:00
ping.go Jira RUN-1106 System handlers updates 2020-12-05 16:41:57 -07:00
resize.go Remove resize race condition 2021-03-29 11:16:51 -04:00
secrets.go Add version field to secret compat list/inspect api 2021-03-02 16:55:21 -05:00
swagger.go bump go module to v3 2021-02-22 09:03:51 +01:00
system.go bump go module to v3 2021-02-22 09:03:51 +01:00
types.go V2 verify JSON output is consistent and doesn't drift 2020-05-28 16:20:29 -07:00
unsupported.go bump go module to v3 2021-02-22 09:03:51 +01:00
version.go Use version package to track all versions 2021-03-03 17:03:19 -07:00
volumes.go Fix volumes and networks list/prune filters in http api 2021-03-19 00:09:29 +01:00