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

Question on StreamConnection.GetReader #6

Closed
rickj33 opened this issue Jul 18, 2018 · 2 comments
Closed

Question on StreamConnection.GetReader #6

rickj33 opened this issue Jul 18, 2018 · 2 comments

Comments

@rickj33
Copy link

rickj33 commented Jul 18, 2018

The call to StreamConnection.GetReader creates an AsyncStreamPipe. In the ctor of AsyncStreamPipe
if read is true, it ensures the stream is writable and if not throws an exception.
and if write is true it checks to ensure the stream is readable
because of this, when trying to get a reader for a readonly file, an exception is thrown.

How can we get a reader for a readonly stream?

@mgravell
Copy link
Owner

That sounds a lot like I've inverted some boolean checks... in which case the fix is: I fix that

@mgravell
Copy link
Owner

should be fixed in 0.2.1-alpha.69, sorry

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

No branches or pull requests

2 participants