moby/distribution
Aaron Lehmann e273445dd4 Fix panic on network timeout during push
`Upload` already closes the reader returned by `compress` and the
progressreader passed into it, before returning. But even so, the
io.Copy inside compress' goroutine needs to attempt a read from the
progressreader to notice that it's closed, and this read has a side
effect of outputting a progress message. If this happens after `Upload`
returns, it can result in a write to a closed channel. Change `compress`
to return a channel that allows the caller to wait for its goroutine to
finish before freeing any resources connected to the reader that was
passed to it.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-01-29 14:34:50 -08:00
..
fixtures/validate_manifest Add distribution package 2015-11-24 09:40:24 -08:00
metadata Changes cross-repository blob mounting to a blob Create option 2016-01-14 14:26:03 -08:00
xfer Fix watching a released transfer 2016-01-25 13:28:02 -08:00
pull.go Merge pull request #19057 from dnephin/remove_version_from_registry_pkg 2016-01-25 22:45:06 -08:00
pull_v1.go Remove the use of dockerversion from the registry package 2016-01-15 12:43:54 -05:00
pull_v2.go Remove temporary layer download file on error 2016-01-25 18:20:18 -08:00
pull_v2_test.go Add schema2 pull support 2016-01-08 17:24:21 -08:00
pull_v2_unix.go Add distribution package 2015-11-24 09:40:24 -08:00
pull_v2_windows.go Add distribution package 2015-11-24 09:40:24 -08:00
push.go Fix panic on network timeout during push 2016-01-29 14:34:50 -08:00
push_v1.go Remove the use of dockerversion from the registry package 2016-01-15 12:43:54 -05:00
push_v2.go Fix panic on network timeout during push 2016-01-29 14:34:50 -08:00
registry.go Set idle timeouts for HTTP reads and writes in communications with the registry 2016-01-26 12:40:39 -08:00
registry_unit_test.go Modify import paths to point to the new engine-api package. 2016-01-06 19:48:59 -05:00