Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F219D200B91 for ; Thu, 29 Sep 2016 15:57:21 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F107B160AE3; Thu, 29 Sep 2016 13:57:21 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 69F29160AD7 for ; Thu, 29 Sep 2016 15:57:21 +0200 (CEST) Received: (qmail 85403 invoked by uid 500); 29 Sep 2016 13:57:20 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 85372 invoked by uid 99); 29 Sep 2016 13:57:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2016 13:57:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7237D2C0057 for ; Thu, 29 Sep 2016 13:57:20 +0000 (UTC) Date: Thu, 29 Sep 2016 13:57:20 +0000 (UTC) From: "Georgi Goranov (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DIRKRB-608) KerberosChannel.timeout has no effect MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 29 Sep 2016 13:57:22 -0000 Georgi Goranov created DIRKRB-608: ------------------------------------- Summary: KerberosChannel.timeout has no effect Key: DIRKRB-608 URL: https://issues.apache.org/jira/browse/DIRKRB-608 Project: Directory Kerberos Issue Type: Bug Affects Versions: 2.0.0-M23 Reporter: Georgi Goranov protected void openConnection( String hostName, int portNo, int timeOut, boolean isUdp ) throws IOException { this.useUdp = isUdp; this.timeOut = timeOut; if ( isUdp ) { udpServerAddr = new InetSocketAddress( hostName, portNo ); udpSocket = new DatagramSocket(); } else { tcpSocket = new Socket( hostName, portNo ); tcpSocket.setSoTimeout( ( int ) timeOut ); in = new DataInputStream( tcpSocket.getInputStream() ); out = tcpSocket.getOutputStream(); } } Socket is created and an attempt to establish connection is made at line tcpSocket = new Socket( hostName, portNo ); but after that changing timeout is done ( tcpSocket.setSoTimeout( ( int )timeOut ); ) Potential fix: tcpSocket = new Socket( ); tcpSocket.connect( hostname,portNo, timeout ); -- This message was sent by Atlassian JIRA (v6.3.4#6332)