DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=30433>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30433 Missing skip()-Method in ContentLengthInputStream Summary: Missing skip()-Method in ContentLengthInputStream Product: Commons Version: 2.0 Final Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: HttpClient AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] ContentLengthInputStream is missing the skip()-Method. This causes the internal pos variable to get out of sync with the content length. We oberseved that closing the stream caused a wait time of about 15 sec in routines which use the skip()-method of InputStream. Here's a possible implementation which should solve the problem: public long skip(long len) throws IOException { long count = super.skip(len); pos += count; return count; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]