-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
readavailable is not working for IOStream on a file #36004
Comments
|
Thank you, but at least, the documents should explicitly define the specification of the function. |
It’s true: the readavailable doc claims to block if no data is available, which is incorrect. |
Not new: #16821 |
Yeah, closing as dup. |
Wait a minute, looking at this again, it is a bug in this particular method. All the other methods make sure to return at least one byte. |
I believe readavailable does not work properly for IOStream on a file.
While the file obviously has 12 bytes, 'readavailable' does not return any byte.
Version info is the following.
'readavailable' works fine for stdio.
Thank you in advance.
The text was updated successfully, but these errors were encountered: