> In the pgwin32_socket function (src/backend/port/win32/socket.c), there is a possible socket leak if the socket cannot be made non-blocking.
I don't know Windows well enough to comment on the implications of not calling closesocket here, but it definitely seems like a prudent thing to do backpatched down to 12. Unless objections I'll do that.
Thanks for taking care of this. Do you have plans or should I register for a commitfest?