Skip to content
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

Exception in StreamSync readHeaderPackage and readUpdate #44

Open
Martin-Schultz opened this issue Nov 3, 2016 · 0 comments
Open

Exception in StreamSync readHeaderPackage and readUpdate #44

Martin-Schultz opened this issue Nov 3, 2016 · 0 comments
Assignees

Comments

@Martin-Schultz
Copy link
Member

Stream.Read(buffer, offset, count) does not guarantee to read "count" bytes. The return value has to be used to make sure all bytes were received. If bytes are received fragmented (e.g. on a bad connection) the StreamSync class breaks.

see:
https://msdn.microsoft.com/en-us/library/system.io.stream.read(v=vs.110).aspx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants