mirror of
https://github.com/versity/versitygw.git
synced 2026-08-17 20:56:21 +00:00
When copying between two different Azure blobs, the source download stream body was only consumed by PutObject but never explicitly closed. If PutObject or any subsequent step returned an error, the underlying HTTP connection held by the Azure SDK was never released, leaking both the connection and any internal SDK retry goroutines attached to it. Added a deferred close on downloadResp.Body immediately after the successful DownloadStream call to ensure the body is always drained and released regardless of the outcome.