Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kyikO-0006gU-FD for pgsql-jdbc@arkaria.postgresql.org; Sun, 10 Jan 2021 21:59:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kyikM-0002Dw-1j for pgsql-jdbc@arkaria.postgresql.org; Sun, 10 Jan 2021 21:59:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kyikL-0002Dp-QP for pgsql-jdbc@lists.postgresql.org; Sun, 10 Jan 2021 21:59:37 +0000 Received: from out-20.smtp.github.com ([192.30.252.203]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kyikF-00076V-2k for pgsql-jdbc@lists.postgresql.org; Sun, 10 Jan 2021 21:59:36 +0000 Received: from github.com (hubbernetes-node-94c13b3.va3-iad.github.net [10.48.112.30]) by smtp.github.com (Postfix) with ESMTPA id 01991E0070 for ; Sun, 10 Jan 2021 13:59:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1610315970; bh=jWWpAQ3/rzfr1RKEnW5U2aGBP3+T3t9CfVSpCNqet0k=; h=Date:From:To:Subject:From; b=XsAxOrv6tJKLDXAuaH+JlDLMfRa+dEehdCAGNLxoFefwYvUM8d0INz3IDGLxvAijo DpvFbvX4AlFV1WwzHlqDmaLlpqjUKNvNKBfjgkjUATi1TY/F4bijuKEAw/ZTJ/jC8i 6Jy2Pr9YLXGuIpj9QM+KV6y5y50Ifd6C88hByioQ= Date: Sun, 10 Jan 2021 13:59:29 -0800 From: Vladimir Sitnikov To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 75c493: test: set gssEncMode only in case it is not alread... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: 75c493920a52e4f8fce756e72f800d3b2cf028ad https://github.com/pgjdbc/pgjdbc/commit/75c493920a52e4f8fce756e72f800d3b2cf028ad Author: Vladimir Sitnikov Date: 2021-01-11 (Mon, 11 Jan 2021) Changed paths: M build.gradle.kts M pgjdbc/src/test/java/org/postgresql/test/TestUtil.java M pgjdbc/src/test/java/org/postgresql/test/ssl/SslTest.java Log Message: ----------- test: set gssEncMode only in case it is not already present in Properties Previously TestUtil always overwrited gssEncMode. Commit: 01c88619f95aa0c7cde03b64ba339c82602e2698 https://github.com/pgjdbc/pgjdbc/commit/01c88619f95aa0c7cde03b64ba339c82602e2698 Author: Vladimir Sitnikov Date: 2021-01-11 (Mon, 11 Jan 2021) Changed paths: M pgjdbc/src/test/java/org/postgresql/test/ssl/SslTest.java Log Message: ----------- test: temporarily allow CONNECTION_UNABLE_TO_CONNECT in SslTest for bad client certificates Java 11 does not drain input stream completely during the handshake, so alert("bad client certificate") is not received until pgjdbc sends the startup message, which is too late. So we allow a generic CONNECTION_UNABLE_TO_CONNECT code for "bad client certificate" case. Commit: 56bd1cc845759cf9d0ddaeb5797ae0584c8a496d https://github.com/pgjdbc/pgjdbc/commit/56bd1cc845759cf9d0ddaeb5797ae0584c8a496d Author: Vladimir Sitnikov Date: 2021-01-11 (Mon, 11 Jan 2021) Changed paths: M pgjdbc/src/main/java/org/postgresql/core/PGStream.java Log Message: ----------- perf: avoid duplicate PGStream#changeSocket calls Typical usages are changeSocket(createSocket()), so changeSocket should not be called from createSocket(). Compare: https://github.com/pgjdbc/pgjdbc/compare/f3301c140d83...56bd1cc84575