-
-
Notifications
You must be signed in to change notification settings - Fork 747
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
Fixes issue #952 - did not write everything to output stream #1010
Fixes issue #952 - did not write everything to output stream #1010
Conversation
Note: This also uses WriteAsync as opposed to Write(), which would block the calling thread until everything was written. |
Should I instead create a PR to 5.2.1 tag? |
Thanks! I can cherry pick the result to that branch once it's merged into main. I would like to get a failing/fixed test that shows this -- the key is figuring out what the interface/datatype/payload was that was causing this? Something that was too big? We serialize a known array of data or a file in the test if that's it. There's a mocking infrastructure that lets us check the contents of what the server receives, similar to this:
|
104bbc9
to
d94f5eb
Compare
Test added in separate commit. It fails before last commit is added. |
…output stream.
d94f5eb
to
f01a96b
Compare
Fixes issue #952 - did not write everything to output stream
After cherry-picking the fix, there's a failing test on the |
Created PR against 5.2 branch. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Refit might not write everything to the outgoing http stream depending on buffer size and the total amount of data it should sent. This PR fixes that.
Should I also create a PR for 5.2.1, since it's a pretty critical bug, I'd think?
Unsure how to create a good unit/integration test for this - any help would be appreciated.
Please check if the PR fulfills these requirements