[pgjdbc/pgjdbc] 23cce8: fix: remove receiving EOF from backend after cance...

Mahmoud Bahaa <[email protected]> Mon, 16 Dec 2019 07:39:03 -0800
Newsgroups gmane.comp.db.postgresql.jdbc
Message-ID <pgjdbc/pgjdbc/push/refs/heads/master/[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: 23cce8ad35d9af6e2a1cb97fac69fdc0a7f94b42
      https://github.com/pgjdbc/pgjdbc/commit/23cce8ad35d9af6e2a1cb97fac69fdc0a7f94b42
  Author: Mahmoud Bahaa <[email protected]>
  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