Closed hanjm closed 3 years ago
@hanjm The Object.Get
method does not auto-close the body that is expected, because the caller will read data from the body later. So, the caller should close the body by themself when call the Object.Get
method like the examples in README and _example/
.
@mozillazg I see, thank you.
https://github.com/thanos-io/thanos use this lib. the
thanos tools bucket web
run after some duration, there will a lot of error logs likedial tcp 169.xxx:443: connect: cannot assign requested address
I foud that the GET method not close body, may be relevant?
https://github.com/mozillazg/go-cos/blob/master/cos.go#L241