Re: BUG #18210: libpq: PQputCopyData sometimes fails in non-blocking mode over GSSAPI encrypted connection
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: lars@greiz-reinsdorf.de
Cc: pgsql-bugs@lists.postgresql.org
Date: 2023-11-22T22:29:34Z
Lists: pgsql-bugs
Attachments
- 0003-alternative-gssapi-fix.patch (text/x-diff) patch 0003
I wrote: > I wonder if we should drop the idea of returning a positive bytecount > after a partial write, and just return the pqsecure_raw_write result, > and not reset PqGSSSendConsumed until we write everything presented. > In edge cases maybe that would result in some buffer bloat, but it > doesn't seem worse than what happens when the very first > pqsecure_raw_write returns EINTR. Here's a patch that fixes it along those lines. I like this better, I think, not least because it removes the assumption that "interesting" pqsecure_raw_write failures will recur on the next try. Still need to look at syncing the backend with this. regards, tom lane
Commits
-
Fix timing-dependent failure in GSSAPI data transmission.
- 18fad508b783 12.18 landed
- d053a879bb36 17.0 landed
- a50053777e95 15.6 landed
- 8f23e6a45009 14.11 landed
- 85eb77185483 16.2 landed
- 5abdfd88fa77 13.14 landed
-
Fix the initial sync tables with no columns.
- eeb0ebad79d9 17.0 cited