pgsql: Improve TranslateSocketError() to handle more Windows error code

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improve TranslateSocketError() to handle more Windows error code
Date: 2016-04-21 20:59:41
Message-ID: E1atLhN-0000LC-Rc@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/82bf369ed6eac67c7a6138591bd38136daad7223

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

Browse pgsql-committers by date

  From Date Subject
Next Message Kevin Grittner 2016-04-21 21:13:24 Re: [HACKERS] Re: pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <
Previous Message Peter Eisentraut 2016-04-21 19:47:08 Re: [COMMITTERS] pgsql: Add trigonometric functions that work in degrees.