pgsql: Improve TranslateSocketError() to handle more Windows error code - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Improve TranslateSocketError() to handle more Windows error code
Date
Msg-id E1atLhN-0000LI-Ro@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/b5ebc513d199d184d85e405022cec4d2f7e98563

Modified Files
--------------
src/backend/port/win32/socket.c | 55 ++++++++++++++++++++++++++++++++---------
src/include/port/win32.h        | 16 ++++++++++--
2 files changed, 58 insertions(+), 13 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Improve TranslateSocketError() to handle more Windows error code
Next
From: Tom Lane
Date:
Subject: pgsql: Remove dead code in win32.h.