Return-Path: Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@www.apache.org Received: (qmail 47284 invoked from network); 4 Sep 2003 14:12:09 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 Sep 2003 14:12:09 -0000 Received: (qmail 89092 invoked by uid 500); 4 Sep 2003 14:12:00 -0000 Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@jakarta.apache.org Received: (qmail 89070 invoked by uid 500); 4 Sep 2003 14:12:00 -0000 Mailing-List: contact commons-httpclient-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Commons HttpClient Project" Reply-To: "Commons HttpClient Project" Delivered-To: mailing list commons-httpclient-dev@jakarta.apache.org Received: (qmail 89046 invoked from network); 4 Sep 2003 14:11:59 -0000 Received: from unknown (HELO av1.mm.cineca.it) (130.186.10.238) by daedalus.apache.org with SMTP; 4 Sep 2003 14:11:59 -0000 Received: from cineca.mm.cineca.it (cineca.mm.cineca.it [130.186.10.200]) by av1.mm.cineca.it (Postfix) with ESMTP id D3FBD16D2EA for ; Thu, 4 Sep 2003 16:11:53 +0200 (CEST) Received: from libero.it (dhcp7-200.cineca.it [130.186.7.200]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) as user f.capannini@cineca.it by cineca.mm.cineca.it (Postfix) with ESMTP id 3065A194278 for ; Thu, 4 Sep 2003 16:11:53 +0200 (MEST) Message-ID: <3F574868.502@libero.it> Date: Thu, 04 Sep 2003 16:12:56 +0200 From: "linea@libero.it" User-Agent: Mozilla/5.0 (X11; U; Linux i686; it-IT; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: commons-httpclient-dev@jakarta.apache.org Subject: setBodyCheckTimeout causes problems in closing the connection Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Spin SafeMail X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I'm using the latest build from gump and I've found out that setting the option setBodyCheckTimeout(500) (which I need because I perform HEAD requests to a lot of different servers) results in the connection not being properly closed. This happens with the url https://www.biomedcentral.com/info/about/peerreview this doesn't happen using commons-httpclient-2.0-rc1.jar build.. Any suggestions? many thanks in advance My log: 1238 DEBUG [Thread-1] methods.HeadMethod - Check for non-compliant response body. Timeout in 500 ms 1238 DEBUG [Thread-1] httpclient.HttpConnection - enter HttpConnection.isResponseAvailable(int) 1241 DEBUG [Thread-1] httpclient.HttpConnection - Input data not available 1241 DEBUG [Thread-1] httpclient.HttpConnection - enter HttpConnection.releaseConnection() 1241 DEBUG [Thread-1] httpclient.HttpConnection - Releasing connection back to connection manager . 1262 DEBUG [Thread-1] httpclient.HttpConnection - An error occurred while reading from the socket , is appears to be stale java.net.SocketException: Socket Closed at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:177) at java.net.Socket.setSoTimeout(Socket.java:898) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.setSoTimeout(DashoA6275) at org.apache.commons.httpclient.HttpConnection.isStale(HttpConnection.java:465) at org.apache.commons.httpclient.HttpConnection.isOpen(HttpConnection.java:396) at org.apache.commons.httpclient.SimpleHttpConnectionManager.getConnectionWithTimeout(Simpl eHttpConnectionManager.java:144) at org.apache.commons.httpclient.HttpMethodDirector.establishValidOpenConnection(HttpMethod Director.java:231) at org.apache.commons.httpclient.HttpMethodDirector.executeMethodForHost(HttpMethodDirector .java:306) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:1 43) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:378) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:268) at CheckClient.run(CheckClient.java:190) 1265 DEBUG [Thread-1] httpclient.HttpConnection - Connection is stale, closing... 1265 DEBUG [Thread-1] httpclient.HttpConnection - enter HttpConnection.close() 1265 DEBUG [Thread-1] httpclient.HttpConnection - enter HttpConnection.closeSockedAndStreams() --------------------------------------------------------------------- To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org