pgsql: check socket creation errors against PGINVALID_SOCKET

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема pgsql: check socket creation errors against PGINVALID_SOCKET
Дата
Msg-id E1WaR69-0007KH-1u@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
check socket creation errors against PGINVALID_SOCKET

Previously, in some places, socket creation errors were checked for
negative values, which is not true for Windows because sockets are
unsigned.  This masked socket creation errors on Windows.

Backpatch through 9.0.  8.4 doesn't have the infrastructure to fix this.

Branch
------
REL9_1_STABLE

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

Modified Files
--------------
src/backend/libpq/auth.c            |    6 +++---
src/backend/libpq/ip.c              |   10 +++++-----
src/backend/libpq/pqcomm.c          |    4 ++--
src/backend/port/win32/socket.c     |    2 +-
src/backend/postmaster/postmaster.c |    2 +-
src/interfaces/libpq/fe-connect.c   |   34 +++++++++++++++++++++++++++++-----
src/interfaces/libpq/libpq-int.h    |    1 +
7 files changed, 42 insertions(+), 17 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: check socket creation errors against PGINVALID_SOCKET
Следующее
От: Bruce Momjian
Дата:
Сообщение: pgsql: doc: fix json_extract_path_text() typo by adding jsonb