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

Mark Thomas <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |INVALID

--- Comment #10 from Mark Thomas <[email protected]> 2010-03-28 19:45:51 UTC ---
Analysis received off-list from Jonathan Leech:

The issue is in the following block:
            else {
                //Read/Write out in one block!!!!
                byte[] bytes = new byte[(int) length];
                in.read(bytes);
                out.write(bytes);
            } 
read() returns the actual number of bytes read, which can be less than
the length of the byte array.
The content length is set to the full length, and there aren't as many
bytes as that in the actual response.
The actual error produced is downstream, caused by the above invalid
condition.


Jonathan's analysis looks good to me.

-- 
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