21278efaee
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> |
||
---|---|---|
.. | ||
empty.go | ||
empty_test.go | ||
filestore.go | ||
filestore_test.go | ||
layer.go | ||
layer_store.go | ||
layer_test.go | ||
layer_windows.go | ||
migration.go | ||
migration_test.go | ||
mount_test.go | ||
mounted_layer.go | ||
ro_layer.go |