Re: BUG #18210: libpq: PQputCopyData sometimes fails in non-blocking mode over GSSAPI encrypted connection
Lars Kanis <lars@greiz-reinsdorf.de>
From: Lars Kanis <lars@greiz-reinsdorf.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Date: 2023-11-22T20:21:47Z
Lists: pgsql-bugs
Am 22.11.23 um 16:11 schrieb Tom Lane: > A repro script would be really really helpful here. After fiddling a bit longer I was able to write a reproducer in C. It needs a Kerberos enabled environment and it reliably fails as described when running over Internet (by VPN connection). Then the output is: PQputCopyData text2 command failed: GSSAPI caller failed to retransmit all data needing to be retried The program is here: https://gist.github.com/larskanis/5546a20365b0ca64e294a32b138f441e I wasn't able to reproduce the error on a LAN connection with the above program. Even adding a trigger on the copy-table to slow the server down or adding PQflush/PQconsumeInput calls didn't work to trigger the GSSAPI error. In contrast the original program sometimes fails even on a LAN connection. Regards, Lars Kanis
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