Return-Path: Delivered-To: apmail-jakarta-httpclient-commits-archive@www.apache.org Received: (qmail 27144 invoked from network); 21 Aug 2005 18:16:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Aug 2005 18:16:06 -0000 Received: (qmail 64493 invoked by uid 500); 21 Aug 2005 18:16:06 -0000 Mailing-List: contact httpclient-commits-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: httpclient-dev@jakarta.apache.org Delivered-To: mailing list httpclient-commits@jakarta.apache.org Received: (qmail 64480 invoked by uid 500); 21 Aug 2005 18:16:06 -0000 Delivered-To: apmail-jakarta-httpclient-cvs@jakarta.apache.org Received: (qmail 64477 invoked by uid 99); 21 Aug 2005 18:16:06 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 21 Aug 2005 11:16:05 -0700 Received: (qmail 27141 invoked by uid 65534); 21 Aug 2005 18:16:05 -0000 Message-ID: <20050821181605.27140.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r234297 - /jakarta/httpclient/trunk/http-common/src/java/org/apache/http/io/ContentLengthInputStream.java Date: Sun, 21 Aug 2005 18:16:05 -0000 To: httpclient-cvs@jakarta.apache.org From: olegk@apache.org X-Mailer: svnmailer-1.0.3 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: olegk Date: Sun Aug 21 11:16:00 2005 New Revision: 234297 URL: http://svn.apache.org/viewcvs?rev=234297&view=rev Log: Fixed bug blocking the #close() method indefinitely in read operation Modified: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/io/ContentLengthInputStream.java Modified: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/io/ContentLengthInputStream.java URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/java/org/apache/http/io/ContentLengthInputStream.java?rev=234297&r1=234296&r2=234297&view=diff ============================================================================== --- jakarta/httpclient/trunk/http-common/src/java/org/apache/http/io/ContentLengthInputStream.java (original) +++ jakarta/httpclient/trunk/http-common/src/java/org/apache/http/io/ContentLengthInputStream.java Sun Aug 21 11:16:00 2005 @@ -117,7 +117,7 @@ if (!closed) { try { byte buffer[] = new byte[BUFFER_SIZE]; - while (this.in.read(buffer) >= 0) { + while (read(buffer) >= 0) { } } finally { // close after above so that we don't throw an exception trying