spiegel_podman/pkg/api
Jan Rodák ecf493dea0
Fix Docker compat /wait hanging on fast-exiting containers
The Docker client (docker run) sends /wait then /start, but it only
sends /start after receiving the 200 OK response from /wait. Previously,
the event subscription for the "died" event was set up after the 200 was
sent, creating a window where a fast-exiting container (e.g. hello-world)
could emit its "died" event before the subscription was ready, causing
the client to hang forever.

Fix this by subscribing to "died" events before flushing the 200 status
code. This guarantees the event listener is ready before the client can
send /start, eliminating the race entirely.

Fixes: https://github.com/containers/podman/issues/28514

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2026-04-20 15:01:42 +02:00
..
grpcpb enable gofumpt formatter 2025-11-11 12:32:46 +01:00
handlers Fix Docker compat /wait hanging on fast-exiting containers 2026-04-20 15:01:42 +02:00
server Fix Docker compat /wait hanging on fast-exiting containers 2026-04-20 15:01:42 +02:00
types set !remote build tags where needed 2024-08-19 11:41:28 +02:00
Makefile api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
tags.yaml [docs] Refactor Artifact API documentation 2025-08-19 10:22:00 +10:00