model-writtenrun 1794 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ning Wu reported that psql on Windows failed to connect with GSSAPI enabled because socket errors were read through errno, and proposed replacing one gss_read check with SOCK_ERRNO #1.
- Umar Hayat questioned whether pqsecure_raw_read already provided portable error handling; Ning demonstrated that errno remained zero while SOCK_ERRNO returned 10035, supporting the proposed fix #2 #3.
- Michael Paquier identified equivalent missing fixes for the second read and the connection-establishment write, while requesting further Windows verification #4.
- After a long gap, Tom Lane endorsed using socket-error macros throughout fe-secure-gssapi.c and supplied a revision replacing all direct errno accesses; he found no strerror calls requiring conversion and planned to commit after cfbot checks despite lacking Windows testing #5 #6.
- The thread ends with Tom's expanded patch awaiting those checks; shortly afterward, its code landed unchanged apart from base context in fc287cf3c4, crediting Ning Wu and Tom Lane and backpatching through PostgreSQL 13 #6.