Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid send on a closed channel race, cancel inner context. (#1670)
``` panic: send on closed channel goroutine 3833084 [running]: github.com/minio/minio-go/v7.(*Object).doGetRequest(_, {{0xc003930000, 0x2000, 0x2000}, 0x2000, 0x0, 0x1, 0x0, 0x1, 0x0, ...}) github.com/minio/minio-go/[email protected]/api-get-object.go:315 +0xdc github.com/minio/minio-go/v7.(*Object).Read(0xc0b1792c40, {0xc003930000?, 0x10?, 0xc001356800?}) github.com/minio/minio-go/[email protected]/api-get-object.go:395 +0x248 io.discard.ReadFrom({}, {0x4c8e0e0, 0xc0b1792c40}) io/io.go:610 +0x72 io.copyBuffer({0x4c94f00, 0x5fab600}, {0x4c8e0e0, 0xc0b1792c40}, {0x0, 0x0, 0x0}) io/io.go:412 +0x14b io.Copy(...) io/io.go:385 github.com/minio/minio/cmd.selfSpeedtest.func4(0x28) github.com/minio/minio/cmd/perf-tests.go:163 +0x4d5 created by github.com/minio/minio/cmd.selfSpeedtest github.com/minio/minio/cmd/perf-tests.go:137 +0x966 ```
- Loading branch information