Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E4354DB2C for ; Thu, 7 Mar 2013 04:26:18 +0000 (UTC) Received: (qmail 78303 invoked by uid 500); 7 Mar 2013 04:26:18 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 78072 invoked by uid 500); 7 Mar 2013 04:26:18 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 76798 invoked by uid 99); 7 Mar 2013 04:26:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Mar 2013 04:26:13 +0000 Date: Thu, 7 Mar 2013 04:26:13 +0000 (UTC) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DERBY-6094) Derby ignores DriverManager.setLoginTimeout() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-6094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13595535#comment-13595535 ] Dag H. Wanvik commented on DERBY-6094: -------------------------------------- Good tests. Minor: comment say 5 seconds sleep, code says 2. I don't quite understand this result: Stopping server... Starting server with timeout 10 : Setting timeout 10 on local connector Testing derby6094.Derby6094$DriverManagerConnector( jdbc:derby://localhost:8246/memory:db1 ) java.sql.SQLNonTransientConnectionException: SQLState = 08001. Message = java.net.ConnectException : \ Error connecting to server localhost on port 8246 with message Connection refused: connect. Experiment took 1030 milliseconds. If both the client and the server side timeout is 10 seconds and the authenticator sleeps only 2 (or 5) seconds, why the failure? Another question: You fork a server, but the test has unused code for starting the server via the API in the same VM. Have you seen a difference in behavior there? > Derby ignores DriverManager.setLoginTimeout() > --------------------------------------------- > > Key: DERBY-6094 > URL: https://issues.apache.org/jira/browse/DERBY-6094 > Project: Derby > Issue Type: Bug > Affects Versions: 10.10.0.0 > Reporter: Rick Hillegas > Attachments: LoginTimeoutTest.java, LoginTimeoutTest.java, LoginTimeoutTest.java, LoginTimeoutTest.java > > > If you set a login timeout using the DriverManager, Derby ignores the setting. I will attach a test case which shows this. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira