azure: implement multipart uploads using low level API

The high level wrapper seems to hang if there are network issues
This commit is contained in:
Nicola Murino
2020-10-25 17:41:04 +01:00
parent 14bcc6f2fc
commit 9b49f63a97
3 changed files with 166 additions and 5 deletions

View File

@@ -227,7 +227,7 @@ func (t *BaseTransfer) Close() error {
if err == nil {
fileSize = info.Size()
}
t.Connection.Log(logger.LevelDebug, "upload file size %v stat error %v", fileSize, err)
t.Connection.Log(logger.LevelDebug, "uploaded file size %v stat error: %v", fileSize, err)
t.updateQuota(numFiles, fileSize)
logger.TransferLog(uploadLogSender, t.fsPath, elapsed, atomic.LoadInt64(&t.BytesReceived), t.Connection.User.Username,
t.Connection.ID, t.Connection.protocol)