aboutsummaryrefslogtreecommitdiff
path: root/vendor/google.golang.org/grpc/keepalive
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2022-10-06 17:49:00 +0200
committerAlexander Larsson <alexl@redhat.com>2022-10-07 10:13:26 +0200
commit5b71070e421b7491bfc9046dea1ae94888cbb6d4 (patch)
treea84792f1c02b05eeb28512c9cedf4881c90a00b4 /vendor/google.golang.org/grpc/keepalive
parent13a1c55d3f0d0cb9a34e865844278e935337cd1b (diff)
downloadpodman-5b71070e421b7491bfc9046dea1ae94888cbb6d4.tar.gz
podman-5b71070e421b7491bfc9046dea1ae94888cbb6d4.tar.bz2
podman-5b71070e421b7491bfc9046dea1ae94888cbb6d4.zip
libpod: Remove 100msec delay during shutdown
When shutting down the image engine we always wait for the image even goroutine to finish writing any outstanding events. However, the loop for that always waits 100msec every iteration. This means that (depending on the phase) shutdown is always delayed up to 100msec. This is delaying "podman run" extra much because podman is run twice (once for the run and once as cleanup via a conmon callback). Changing the image loop to exit immediately when a libimageEventsShutdown (but first checking for any outstanding events to write) improves podman run times by about 100msec on average. Note: We can't just block on the event loop reading the shutdown event anymore, we need to wait until it read and processed any outstanding events, so we now send the shutdown event and then block waiting for the channel to be closed by the event loop. [NO NEW TESTS NEEDED] Signed-off-by: Alexander Larsson <alexl@redhat.com>
Diffstat (limited to 'vendor/google.golang.org/grpc/keepalive')
0 files changed, 0 insertions, 0 deletions