Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1igsSn-0001fk-Kl for pgsql-jdbc@arkaria.postgresql.org; Mon, 16 Dec 2019 15:39:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1igsSm-0004lc-H5 for pgsql-jdbc@arkaria.postgresql.org; Mon, 16 Dec 2019 15:39:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1igsSm-0004lU-9O for pgsql-jdbc@lists.postgresql.org; Mon, 16 Dec 2019 15:39:12 +0000 Received: from out-24.smtp.github.com ([192.30.252.207]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1igsSe-0007w3-Ve for pgsql-jdbc@lists.postgresql.org; Mon, 16 Dec 2019 15:39:11 +0000 Date: Mon, 16 Dec 2019 07:39:03 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1576510743; bh=O77M/B8y11DzdA5b+jxcQ8/oDljZCQaoXi/F6zTphwU=; h=Date:From:To:Subject:From; b=eSREJDTbB2G2MZGQPA0zMD6Hv6SiKMhc9GxHqlPNEo8IiOSZ/vSxblALtIUPvbYjj 8+a4xcrHLCOXIyLk2xeNk4yhGygy5n6apEC4qVGORFxWDZ6zAbO4tXTs5dgHFrxkLH /nlsW+Z75xDeDcA5TJDL7Ttb8wRFRIqbLjQZaLtc= From: Mahmoud Bahaa To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 23cce8: fix: remove receiving EOF from backend after cance... 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: 23cce8ad35d9af6e2a1cb97fac69fdc0a7f94b42 https://github.com/pgjdbc/pgjdbc/commit/23cce8ad35d9af6e2a1cb97fac69fdc0a7f94b42 Author: Mahmoud Bahaa Date: 2019-12-16 (Mon, 16 Dec 2019) Changed paths: M pgjdbc/src/main/java/org/postgresql/core/QueryExecutorBase.java M pgjdbc/src/test/java/org/postgresql/test/jdbc2/StatementTest.java Log Message: ----------- fix: remove receiving EOF from backend after cancel since according to protocol the server closes the connection once cancel is sent (connection reset exception is always thrown) (#1641) quote "The server will process this [cancel] request and then close the connection. For security reasons, no direct reply is made to the cancel request message." https://www.postgresql.org/docs/current/protocol-flow.html