1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/layer
Aaron Lehmann 21278efaee Make TarStream return an io.ReadCloser
Currently, the resources associated with the io.Reader returned by
TarStream are only freed when it is read until EOF. This means that
partial uploads or exports (for example, in the case of a full disk or
severed connection) can leak a goroutine and open file. This commit
changes TarStream to return an io.ReadCloser. Resources are freed when
Close is called.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-11-25 16:39:54 -08:00
..
empty.go Make TarStream return an io.ReadCloser 2015-11-25 16:39:54 -08:00
empty_test.go Add layer store 2015-11-24 09:40:23 -08:00
filestore.go Add layer store 2015-11-24 09:40:23 -08:00
filestore_test.go Add layer store 2015-11-24 09:40:23 -08:00
layer.go Make TarStream return an io.ReadCloser 2015-11-25 16:39:54 -08:00
layer_store.go Make TarStream return an io.ReadCloser 2015-11-25 16:39:54 -08:00
layer_test.go Make TarStream return an io.ReadCloser 2015-11-25 16:39:54 -08:00
layer_windows.go Rearrange layerstore locking 2015-11-24 21:45:50 +00:00
migration.go Rearrange layerstore locking 2015-11-24 21:45:50 +00:00
migration_test.go Add layer store 2015-11-24 09:40:23 -08:00
mount_test.go Add layer store 2015-11-24 09:40:23 -08:00
mounted_layer.go Make TarStream return an io.ReadCloser 2015-11-25 16:39:54 -08:00
ro_layer.go Make TarStream return an io.ReadCloser 2015-11-25 16:39:54 -08:00