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

LedCarveTask might miss a lot of items #1452

Closed
lfcnassif opened this issue Dec 19, 2022 · 1 comment
Closed

LedCarveTask might miss a lot of items #1452

lfcnassif opened this issue Dec 19, 2022 · 1 comment
Assignees
Labels

Comments

@lfcnassif
Copy link
Member

lfcnassif commented Dec 19, 2022

Taking a quick look at LedCarveTask trying to find possible causes of divergences of results to default CarverTask reported by an user, I found some InputStream.read(byte[]) calls are not being retried to full fill the buffer, that call may return less bytes than requested before end of stream depending on implementation (and we have some InputStream implementations doing this, it is OK according to java API).

@lfcnassif
Copy link
Member Author

@tc-wleite the fix is very simple so I pushed it directly to master.

@lfcnassif lfcnassif changed the title LedCarveTask may miss a lot of items LedCarveTask might miss a lot of items Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant