Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 93314 invoked from network); 12 Jan 2010 03:47:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jan 2010 03:47:19 -0000 Received: (qmail 19987 invoked by uid 500); 12 Jan 2010 03:47:18 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 19577 invoked by uid 500); 12 Jan 2010 03:47:18 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 19567 invoked by uid 99); 12 Jan 2010 03:47:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2010 03:47:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2010 03:47:15 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6D40C234C052 for ; Mon, 11 Jan 2010 19:46:54 -0800 (PST) Message-ID: <956106366.174051263268014446.JavaMail.jira@brutus.apache.org> Date: Tue, 12 Jan 2010 03:46:54 +0000 (UTC) From: "Stephane Godin (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (NET-307) One of the "connect" method in class org.apache.commons.net.SocketClient doesn't handle connection timeout properly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org One of the "connect" method in class org.apache.commons.net.SocketClient doesn't handle connection timeout properly ------------------------------------------------------------------------------------------------------------------- Key: NET-307 URL: https://issues.apache.org/jira/browse/NET-307 Project: Commons Net Issue Type: Improvement Affects Versions: 2.0 Environment: Not applicable Reporter: Stephane Godin org.apache.commons.net.SocketClient method connect (line 225) doesn't use the configured timeout value. Original code: {code:title=SocketClient.java (line 225)|borderStyle=solid} public void connect(String hostname, int port, InetAddress localAddr, int localPort) throws SocketException, IOException { _socket_ = _socketFactory_.createSocket(hostname, port, localAddr, localPort); _connectAction_(); } {code} Working code: {code:title=SocketClient.java (line 225)|borderStyle=solid} public void connect(String hostname, int port, InetAddress localAddr, int localPort) throws SocketException, IOException { _socket_ = _socketFactory_.createSocket(); _socket_.connect(new InetSocketAddress(hostname, port), connectTimeout); _connectAction_(); } {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.