-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ManagedUpload never finishes when stream size == part size
When uploading a stream with an unknown initial length and a total length exactly equal to a multiple of the part size and a queueSize of 0, the upload callback is never finished. This is caused by only checking whether the upload finished after uploading the last part, but not when the end event is received. In our case the end event is received after the last part has been uploaded, but there is also no more data to be uploaded, resulting in a hanging upload.
- Loading branch information
1 parent
975b315
commit b982ac8
Showing
2 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters