Return-Path: Delivered-To: apmail-jakarta-httpcomponents-dev-archive@www.apache.org Received: (qmail 25191 invoked from network); 17 Jul 2007 17:41:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jul 2007 17:41:28 -0000 Received: (qmail 78692 invoked by uid 500); 17 Jul 2007 17:41:28 -0000 Delivered-To: apmail-jakarta-httpcomponents-dev-archive@jakarta.apache.org Received: (qmail 78652 invoked by uid 500); 17 Jul 2007 17:41:27 -0000 Mailing-List: contact httpcomponents-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list httpcomponents-dev@jakarta.apache.org Received: (qmail 78643 invoked by uid 99); 17 Jul 2007 17:41:27 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jul 2007 10:41:27 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jul 2007 10:41:24 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A56D871418E for ; Tue, 17 Jul 2007 10:41:04 -0700 (PDT) Message-ID: <25182305.1184694064674.JavaMail.jira@brutus> Date: Tue, 17 Jul 2007 10:41:04 -0700 (PDT) From: "Karsten Silz (JIRA)" To: httpcomponents-dev@jakarta.apache.org Subject: [jira] Created: (HTTPCLIENT-671) setSoTimeout() doesn't seem to work MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org setSoTimeout() doesn't seem to work ----------------------------------- Key: HTTPCLIENT-671 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-671 Project: HttpComponents HttpClient Issue Type: Bug Components: HttpConn Affects Versions: 3.0.1 Environment: Windows XP SP2, 1.4.2_13-b06 Reporter: Karsten Silz I try to use the socket timeout for an HttpClient instance, but it isn't working. Here's my code (approximately): Class attributes: private static final int TIMEOUT = 15 * 1000; private final HttpClient browser = new HttpClient(); Constructor: HttpConnectionManager httpConnectionManager = new SimpleHttpConnectionManager(); httpConnectionManager.getParams().setSoTimeout(TIMEOUT); browser.setHttpConnectionManager(httpConnectionManager); Method: final GetMethod request = new GetMethod(initialUrl); request.setFollowRedirects(true); final HttpMethodParams parameters = request.getParams(); parameters.setSoTimeout(TIMEOUT); request.setParams(parameters); int responseCode = browser.executeMethod(request ); Now I hit a URL with a non-existing IP address, and instead of 15 seconds it times out after pretty much 84 seconds. What is wrong here -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org