Improve TranslateSocketError() to handle more Windows error codes.
Tom Lane <tgl@sss.pgh.pa.us>
Improve TranslateSocketError() to handle more Windows error codes. The coverage was rather lean for cases that bind() or listen() might return. Add entries for everything that there's a direct equivalent for in the set of Unix errnos that elog.c has heard of.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/port/win32/socket.c | modified | +44 −11 |
| src/include/port/win32.h | modified | +14 −2 |