Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 21421 invoked from network); 25 Jun 2005 18:22:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jun 2005 18:22:07 -0000 Received: (qmail 26696 invoked by uid 500); 25 Jun 2005 18:22:04 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 26677 invoked by uid 500); 25 Jun 2005 18:22:03 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 26664 invoked by uid 99); 25 Jun 2005 18:22:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Jun 2005 11:22:03 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [81.209.148.130] (HELO dd2020.kasserver.com) (81.209.148.130) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Jun 2005 11:22:03 -0700 Received: from [192.168.1.3] (p54B1A03B.dip0.t-ipconnect.de [84.177.160.59]) by dd2020.kasserver.com (Postfix) with ESMTP id F11411D4A9F for ; Sat, 25 Jun 2005 20:21:57 +0200 (CEST) Message-ID: <42BDA0CD.6070600@apache.org> Date: Sat, 25 Jun 2005 20:22:05 +0200 From: Torsten Curdt User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Developers List Subject: [httpclient] why all this stream wrapping X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig88DA987FCD5326B58EA8B232" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------enig88DA987FCD5326B58EA8B232 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Can someone explain why the SocketInputStream is wrapped in an AutoCloseInputStream as well as a ContentLenghtInputStream. This is currently byting me in the ass and I would at least like to understand why a read with the return code of -1 is so bad that everything has to be wrapped like this. Just curious ...I assume there must be a reason cheers -- Torsten --------------enig88DA987FCD5326B58EA8B232 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFCvaDNBGM6V3wgCUERAlt2AJ9TdPpK+wUNK+3m4bEq3X0wc/Tm1wCfWyul S79cGm17QCD2V8SzSy1QOkA= =1mnJ -----END PGP SIGNATURE----- --------------enig88DA987FCD5326B58EA8B232--