Some Drop trait implementations call the bindings for closing resources.
The bindings may return an error, however, we cannot handle it because it's when the instance of the type is removed from memory, so we have to leak the resource.
One thing that we may implement is retrying the close operation a few times depending on the returned error for avoiding leaking the resource.
I'd like to collect thoughts about if we should retry or not, and if we should retry, under which errors.
Note you can find the source places affected by this issue by searching in the sources TODO(https://github.com/storj-thirdparty/uplink-rust/issues/51).
Some
Drop
trait implementations call the bindings for closing resources. The bindings may return an error, however, we cannot handle it because it's when the instance of the type is removed from memory, so we have to leak the resource.One thing that we may implement is retrying the
close
operation a few times depending on the returned error for avoiding leaking the resource.I'd like to collect thoughts about if we should retry or not, and if we should retry, under which errors.
Note you can find the source places affected by this issue by searching in the sources
TODO(https://github.com/storj-thirdparty/uplink-rust/issues/51)
.