https://issues.apache.org/bugzilla/show_bug.cgi?id=51461

--- Comment #8 from Nick Burch <[email protected]> 2011-07-01 15:15:51 
UTC ---
I can't reproduce the infinite loop using your supplied file - it works fine
for me

I'm not sure we want to stop reading as soon as we hit zero bytes back from a
read call though, as your patch suggests. Think of the case of reading from a
slop stream, eg from a network. It's quite possible for that to return zero
when there's no data yet, but more still to come. The contract for readFully is
that it should keep going until there is no more data available, which we'd
break for that situation

At the point your file hits an infinite loop, what are the values of:
 * total 
 * b.capacity() 
 * b.position()
?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to