moby--moby/pkg/stdcopy
David Calavera 443a5c2021 Make stdcopy.stdWriter goroutine safe.
Stop using global variables as prefixes to inject the writer header.
That can cause issues when two writers set the length of the buffer in
the same header concurrently.

Stop Writing to the internal buffer twice for each write. This could
mess up with the ordering information is written.

Signed-off-by: David Calavera <david.calavera@gmail.com>
2016-02-26 16:51:18 -05:00
..
stdcopy.go Make stdcopy.stdWriter goroutine safe. 2016-02-26 16:51:18 -05:00
stdcopy_test.go Make stdcopy.stdWriter goroutine safe. 2016-02-26 16:51:18 -05:00