Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAPMR-006agR-4F for pgsql-jdbc-commits@arkaria.postgresql.org; Tue, 05 Dec 2023 06:56:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rAPMO-002Zbo-Pi for pgsql-jdbc-commits@arkaria.postgresql.org; Tue, 05 Dec 2023 06:56:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAPMO-002Zbg-JG for pgsql-jdbc-commits@lists.postgresql.org; Tue, 05 Dec 2023 06:56:48 +0000 Received: from out-24.smtp.github.com ([192.30.252.207]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAPML-008sHH-JT for pgsql-jdbc-commits@lists.postgresql.org; Tue, 05 Dec 2023 06:56:47 +0000 Received: from github.com (hubbernetes-node-60b8b26.ac4-iad.github.net [10.52.138.28]) by smtp.github.com (Postfix) with ESMTPA id 3D5661E048F for ; Mon, 4 Dec 2023 22:56:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2023; t=1701759404; bh=acTqomgxSsPW/h8wr54M4kOl2UHdpM8lBvu88icxHgM=; h=Date:From:To:Subject:From; b=HNJDrRRRHogF55th/9a2opGJ1unbIE17EW8orzMA6H5I9C8qUMdC6bjngF9lnYxAJ HRTDMa2mupm9FoYOygkNjhS1plisY4lSEnH1NrYBlWhvI206hLdkwKEP1lJjg+dloL GbWq2N1PrpGDRqCQ2f0nXo8jZGL1kZHCoJz2t+CM= Date: Mon, 04 Dec 2023 22:56:44 -0800 From: Dave Cramer To: pgsql-jdbc-commits@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 91c0a0: Apply connectTimeout before SSLSocket.startHandsha... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc-commits@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: 91c0a0eac97924a168f238eebdf6ca37b68d7602 https://github.com/pgjdbc/pgjdbc/commit/91c0a0eac97924a168f238eebdf6ca37b68d7602 Author: Dave Cramer Date: 2023-12-05 (Tue, 05 Dec 2023) Changed paths: M pgjdbc/src/main/java/org/postgresql/ssl/MakeSSL.java Log Message: ----------- Apply connectTimeout before SSLSocket.startHandshake to avoid infinite wait in case the connection is broken (#3040) Use connectTimeout (default: 10s) for SSL handshake, then apply socketTimeout (default: 0, infinite timeout)