From: vlsi (@vlsi) <noreply+vlsi@github.com>
To: pgjdbc/pgjdbc <noreply+pgjdbc-pgjdbc@github.com>
Subject: Re: [pgjdbc/pgjdbc] PR #4331: fix(copy): keep the COPY active when a read times out
Date: Fri, 21 Aug 2026 18:38:03 +0000
Message-ID: <gh-pgjdbc-pgjdbc-4331-c5373826251@github.com> (raw)
In-Reply-To: <gh-pgjdbc-pgjdbc-4331@github.com>
References: <gh-pgjdbc-pgjdbc-4331@github.com>
#4354 is stacked on this branch and has to merge second. Its last commit makes the replication read timeout surface on connections opened without `socketTimeout`, and before this PR a surfaced timeout ended the COPY — the status update that follows it would then have failed with `Tried to write to an inactive copy operation` (#4328) for every default-configured consumer.
`TestUtil.openReplicationConnection(Consumer<Properties>)` now lives only here. #4354 had added it identically and dropped its copy when it was rebased onto this branch.
Both branches are rebased onto master as of 3ba23fcff.