Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 46356 invoked from network); 31 Aug 2007 17:58:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Aug 2007 17:58:23 -0000 Received: (qmail 1173 invoked by uid 500); 31 Aug 2007 17:58:18 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 845 invoked by uid 500); 31 Aug 2007 17:58:18 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 834 invoked by uid 99); 31 Aug 2007 17:58:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2007 10:58:18 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.227.126.186] (HELO moutng.kundenserver.de) (212.227.126.186) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2007 17:58:11 +0000 Received: from e180008012.adsl.alicedsl.de [85.180.8.12] (helo=[85.180.8.12]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis), id 0ML31I-1IRAkf3Yi5-0001Z2; Fri, 31 Aug 2007 19:57:49 +0200 Message-ID: <46D856B0.8050400@dubioso.net> Date: Fri, 31 Aug 2007 19:58:08 +0200 From: Roland Weber User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070807 SeaMonkey/1.1.4 MIME-Version: 1.0 To: HttpClient User Discussion Subject: Re: Premature EOF on socket read References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1+9GVqLC4ykkuv5FBNUA71OX3McMM47qAygf3l eyckRnzKGm5NqK9fMF3Ck8jQ5Xe54rMUAM+tl0bKzO8j5+fpR+ X98DFB8WlowoHqp/mTpBHCexA/x2lOU X-Virus-Checked: Checked by ClamAV on apache.org Hello Henrich, > Subsequently no IOException is thrown. My reading of > http://www.mail-archive.com/httpclient-user@jakarta.apache.org/msg03923.html > was that one can assume that the entire resource was downloaded when EOF > is encountered. Now I wonder how/where this situation should be handled? Theoretically? Yes. If all components adhere to HTTP. In your case, either the server or proxy don't. > One thought is that ContentLengthInputStream is in a position to know and > could throw some kind of premature EOF encountered exception. That's how it is implemented in HttpCore-4.0. Unfortunately, HttpClient 3.1 does not check the actual length received. You can do that in your application however. > Presumably the default retry logic would then retry such a request. It wouldn't. By the time you start reading the response entity, HttpClient.executeMethod has already returned and can therefore not repeat the request. > > Or should this be handled by the application? Exactly. hope that helps, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org