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
safebuffer.go
set.go
set_test.go
slices.go
slices_test.go
stringutils.go
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