Skip to content

Commit

Permalink
fix: Ensure socket is unpaused after COPY stream is complete
Browse files Browse the repository at this point in the history
  • Loading branch information
valeneiko committed Jan 21, 2025
1 parent 17a30c9 commit 77c820e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
function CopyDone() {
stream && stream.push(null)
stream = null
socket.isPaused() && socket.resume()
}

function NoticeResponse(x) {
Expand Down

0 comments on commit 77c820e

Please sign in to comment.