-
Notifications
You must be signed in to change notification settings - Fork 62
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
fixed issue #40 regarding partial streams #185
Conversation
All tests are green and the PR Validation is wrong?
at FSI_0005.Build.ResultHandling.failBuildWithMessage@82-1.Invoke(String m) in D:\a\1\s\build.fsx:line 82 |
Added @Arkatufus to this issue |
The problem is with the current dotnet compiler for netcoreapp2.1, it requires a very arbitrary version of SDK to be installed, and it depends on the (most probably) msbuild installation. |
Tests are passing now - just need to review. @Arkatufus do you want to take it or should I do it?- |
I'm doing it right now |
@Aaronontheweb I will need your input on this. |
The Our biggest concern is actually the multi-byte reads on the stream, such as arrays, strings, etc. We might need a guard on these reads, but I couldn't decide whether we should throw on partial fail reads or silently fail it. |
@Arkatufus I'll need to revisit the issue - if this is a partial read issue then that might be the responsibility of the framing system to solve it, rather than something the serializer needs to handle. |
I guess it really depends on type of deserialization is currently happening? We only need to guard on atomic primitive reads, but not on unknown length reads? if that is the case, then simply wrapping all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to handle the 0 bytes received case, but otherwise this PR looks good
added default behavior to throw an EOF exception. If the use case for useful partial reads comes up a flag to swallow the exception could be added. |
Thank you for the PR 👍 |
No description provided.