Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 11880 invoked from network); 7 Jun 2004 03:52:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Jun 2004 03:52:27 -0000 Received: (qmail 29774 invoked by uid 500); 7 Jun 2004 03:52:20 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 29761 invoked by uid 500); 7 Jun 2004 03:52:20 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 29744 invoked by uid 99); 7 Jun 2004 03:52:20 -0000 Received: from [140.142.33.19] (HELO mxout4.cac.washington.edu) (140.142.33.19) by apache.org (qpsmtpd/0.27.1) with ESMTP; Sun, 06 Jun 2004 20:52:20 -0700 Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout4.cac.washington.edu (8.12.11+UW04.02/8.12.11+UW04.03) with ESMTP id i573pxjN024437 for ; Sun, 6 Jun 2004 20:52:00 -0700 Received: from [10.0.1.2] (pool-68-160-41-80.bos.east.verizon.net [68.160.41.80]) (authenticated bits=0) by smtp.washington.edu (8.12.11+UW04.02/8.12.11+UW04.03) with ESMTP id i573pvwC008087 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 6 Jun 2004 20:51:59 -0700 Mime-Version: 1.0 (Apple Message framework v618) In-Reply-To: <20040604135640.GA15467@moja.mine.nu> References: <20040604135640.GA15467@moja.mine.nu> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <036D1058-B836-11D8-A2A7-00306557E112@u.washington.edu> Content-Transfer-Encoding: 7bit From: Michael Becke Subject: [HttpClient] Re: Download of file causes connection breakdown with debugging off Date: Sun, 6 Jun 2004 23:51:53 -0400 To: "Jakarta Commons Users List" X-Mailer: Apple Mail (2.618) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello Ralf, This sounds quite strange. The fact that calling getResponseBody() fixes the problem leads me to believe that the responses were not being fully processed. When executing a method you must be sure to call HttpMethod.releaseConnection() or read the entire method response (which implicitly calls HttpMethod.releaseConnection())). My guess is that this was not happening. If you post some sample code of how you are using HttpClient, along with a wire log we will be able to get a better idea of what's happening. Mike On Jun 4, 2004, at 9:56 AM, tripod@moja.mine.nu wrote: > Hello everybody, > > I found the following problem: > > With my Web-App ( Bea 6.1 / struts ) I wanted (in fact had to :-) > download > a not so small file ( about 170k ) from a Microsoft IIS server from a > partner > company using NTLM auth. > > When the loglevel was set to debug everything worked fine using the > authentication as well as the method.getResponseBodyAsStream();. > > As soon as I turned off logging, and the data going over the wire > was not printed in the logfile, I received only 1-4 IP-Packets > containing response data, then my machines decreased the receive > window to 0, and the server doesn't send ( correctly ) any more > packages. > Tested on Linux and Solaris. > > I now bypassed the problem by not using the > method.getResponseBodyAsStream() > but getting the byte[] instead, and putting it into an appropriate > InputStream. > > What could be the reason for this? When reading the input stream I had > to do lots of line-based parsing, did i let wait the stream too long, > means reading too slow? Did anyone else appear such a problem already? > > Kind Regards, > Ralf Fischer > -- > Ralf Fischer > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org