-
Notifications
You must be signed in to change notification settings - Fork 13
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
eof(::Session) and read(::Session) don't get along #26
Comments
the issue is in
Please confirm that this works for you and I'll close it out. |
Now it throws "stream is closed or unusable" from the |
Can you make sure you've done a |
Oh yup sweet |
How would you propose doing that with That is, |
I guess you would probably have to block inside However, then you would have to hold that data in a buffer until |
well, we could do a My current preference is that eof() shouldn't be used with read() in any case, since any eof check in read() will likely block on nb_available < 1, and it's probably better just to throw the exception right away. Of course, my present understanding of 1) how this should work and 2) how it actually works is suspect. |
Huh..? if a call to |
So - one other thing that doesn't make a difference in this particular case, but |
The following prints the complete response then throws a "read: end of file" error. Where as I would expect it to block on
eof
until the connection is closed by the github server.The text was updated successfully, but these errors were encountered: