-
Notifications
You must be signed in to change notification settings - Fork 47
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
Fido hanging on skeleton stream (fmt/1000) #189
Comments
Of interest to #94 |
- added simple test, with no assert, for file identification; and - added similar for stream identification which demonstrates hang.
The source of the error is in the while bytes_read < bytes_to_read:
readbuffer = file.read(bytes_to_read - bytes_read)
buffer += readbuffer
bytes_read = len(buffer)
# break out if EOF is reached.
if readbuffer == '':
break
return buffer specifically with the exit condition I have a working fix for the tests but note that these tests are deficient, which segues into the link to #94 that @ross-spencer alluded to. I believe that the |
- fixed termination condition in `blocking_read`.
Hackathon 2023 Review: Selected, @darrendignam @sromkey this should be fixable from here I think. |
Bug spotted while writing docs, the following will hang when calling
identify_stream(...)
.I haven't looked at the code myself, but Carl has and identified we're getting to the end of the data during a loop and then it's blocking as we've nothing left to consume, but no way to exit. And it sounds like he has a fix, so that's good!
The text was updated successfully, but these errors were encountered: