compose/pkg/utils
Nicolas De loof 6204fb1c94
logs: fix for missing output on container exit (#10925)
We can't assume we receive container logs line by line. Some framework won't buffer output and will send char by char, and we also can receive looong lines which get buffered to 32kb and then cut into multiple logs.

This assumes we will catch container streams being closed before we receive a die event for container, which could be subject to race condition, but at least the impact here is minimal and the fix works for reproduction examples provided in linked issues.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2023-08-23 08:57:18 -04:00
..
durationutils.go bump docker dependencies version 2022-10-18 16:26:54 +02:00
safebuffer.go Add Codecov 2022-10-17 15:32:51 +02:00
set.go up: handle various attach use cases better 2023-08-18 12:38:38 +02:00
set_test.go up: handle various attach use cases better 2023-08-18 12:38:38 +02:00
slices.go fix some comments 2023-07-04 11:34:49 +08:00
slices_test.go don't push images at the end of multi-arch build (and simplify e2e tests) 2022-09-02 15:44:55 +02:00
stringutils.go use a simpler prompt implementation when we lack a terminal 2023-01-09 10:28:16 +01:00
writer.go logs: fix for missing output on container exit (#10925) 2023-08-23 08:57:18 -04:00
writer_test.go logs: fix for missing output on container exit (#10925) 2023-08-23 08:57:18 -04:00