-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix streaming uploads #1406
Fix streaming uploads #1406
Conversation
…der should be reset
…tes on the file when invoked with a ZnStringBuffer as argument due to the optimized implementation. Fixed by writing the internal collection class instead.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1406 +/- ##
==========================================
+ Coverage 48.49% 48.71% +0.22%
==========================================
Files 9164 9166 +2
Lines 82164 82191 +27
==========================================
+ Hits 39847 40041 +194
+ Misses 42317 42150 -167 ☔ View full report in Codecov by Sentry. |
I don't understand the fix for the missing bytes. As far as I can tell, the change would even break things. The collection used as buffer for the ring buffer will not start at 1 necessarily. Using the raw buffer as argument to |
The implementation of
You're right. I did a number of tests that worked fine and assumed too quickly it would be ok. |
…a -ring- (duh) and rename it to nextPutAllOn:
@theseion corrected the implementation. Thanks! |
… does not seem necessary)
Thanks for the review @theseion ! |
Thank you! :) |
This PR fixes two problems with streaming file uploads: