pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Close socket in case of errors in setting non-blocking
6+ messages / 1 participants
[nested] [flat]

* pgsql: Close socket in case of errors in setting non-blocking
@ 2024-01-17 10:32  Daniel Gustafsson <dgustafsson@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Daniel Gustafsson @ 2024-01-17 10:32 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Close socket in case of errors in setting non-blocking

If configuring the newly created socket non-blocking fails we
error out and return INVALID_SOCKET, but the socket that had
been created wasn't closed. Fix by issuing closesocket in the
errorpath.

Backpatch to all supported branches.

Author: Ranier Vilela <ranier.vf@gmail.com>
Discussion: https://postgr.es/m/CAEudQApmU5CrKefH85VbNYE2y8H=-qqEJbg6RAPU65+vCe+89A@mail.gmail.com
Backpatch-through: v12

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7cfa154d15c4a98bea0cfe26b2c78094a094650f

Modified Files
--------------
src/backend/port/win32/socket.c | 1 +
1 file changed, 1 insertion(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Close socket in case of errors in setting non-blocking
@ 2024-01-17 10:33  Daniel Gustafsson <dgustafsson@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Daniel Gustafsson @ 2024-01-17 10:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Close socket in case of errors in setting non-blocking

If configuring the newly created socket non-blocking fails we
error out and return INVALID_SOCKET, but the socket that had
been created wasn't closed. Fix by issuing closesocket in the
errorpath.

Backpatch to all supported branches.

Author: Ranier Vilela <ranier.vf@gmail.com>
Discussion: https://postgr.es/m/CAEudQApmU5CrKefH85VbNYE2y8H=-qqEJbg6RAPU65+vCe+89A@mail.gmail.com
Backpatch-through: v12

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6614d38d8780670d2337090bdf2ec81c0b8bab8e

Modified Files
--------------
src/backend/port/win32/socket.c | 1 +
1 file changed, 1 insertion(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Close socket in case of errors in setting non-blocking
@ 2024-01-17 10:34  Daniel Gustafsson <dgustafsson@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Daniel Gustafsson @ 2024-01-17 10:34 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Close socket in case of errors in setting non-blocking

If configuring the newly created socket non-blocking fails we
error out and return INVALID_SOCKET, but the socket that had
been created wasn't closed. Fix by issuing closesocket in the
errorpath.

Backpatch to all supported branches.

Author: Ranier Vilela <ranier.vf@gmail.com>
Discussion: https://postgr.es/m/CAEudQApmU5CrKefH85VbNYE2y8H=-qqEJbg6RAPU65+vCe+89A@mail.gmail.com
Backpatch-through: v12

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/551c0b7bda3e147494bb9858035427d918b885a2

Modified Files
--------------
src/backend/port/win32/socket.c | 1 +
1 file changed, 1 insertion(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Close socket in case of errors in setting non-blocking
@ 2024-01-17 10:35  Daniel Gustafsson <dgustafsson@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Daniel Gustafsson @ 2024-01-17 10:35 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Close socket in case of errors in setting non-blocking

If configuring the newly created socket non-blocking fails we
error out and return INVALID_SOCKET, but the socket that had
been created wasn't closed. Fix by issuing closesocket in the
errorpath.

Backpatch to all supported branches.

Author: Ranier Vilela <ranier.vf@gmail.com>
Discussion: https://postgr.es/m/CAEudQApmU5CrKefH85VbNYE2y8H=-qqEJbg6RAPU65+vCe+89A@mail.gmail.com
Backpatch-through: v12

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d8f6ab5f66a3fcce61694308172ffd6c9e04d6b2

Modified Files
--------------
src/backend/port/win32/socket.c | 1 +
1 file changed, 1 insertion(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Close socket in case of errors in setting non-blocking
@ 2024-01-17 10:35  Daniel Gustafsson <dgustafsson@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Daniel Gustafsson @ 2024-01-17 10:35 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Close socket in case of errors in setting non-blocking

If configuring the newly created socket non-blocking fails we
error out and return INVALID_SOCKET, but the socket that had
been created wasn't closed. Fix by issuing closesocket in the
errorpath.

Backpatch to all supported branches.

Author: Ranier Vilela <ranier.vf@gmail.com>
Discussion: https://postgr.es/m/CAEudQApmU5CrKefH85VbNYE2y8H=-qqEJbg6RAPU65+vCe+89A@mail.gmail.com
Backpatch-through: v12

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a6463d287b4a313994760a315461d6af86da1873

Modified Files
--------------
src/backend/port/win32/socket.c | 1 +
1 file changed, 1 insertion(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Close socket in case of errors in setting non-blocking
@ 2024-01-17 10:35  Daniel Gustafsson <dgustafsson@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Daniel Gustafsson @ 2024-01-17 10:35 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Close socket in case of errors in setting non-blocking

If configuring the newly created socket non-blocking fails we
error out and return INVALID_SOCKET, but the socket that had
been created wasn't closed. Fix by issuing closesocket in the
errorpath.

Backpatch to all supported branches.

Author: Ranier Vilela <ranier.vf@gmail.com>
Discussion: https://postgr.es/m/CAEudQApmU5CrKefH85VbNYE2y8H=-qqEJbg6RAPU65+vCe+89A@mail.gmail.com
Backpatch-through: v12

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/db0d238419decf7edfd84b24d1a151b3ac21dc6a

Modified Files
--------------
src/backend/port/win32/socket.c | 1 +
1 file changed, 1 insertion(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2024-01-17 10:35 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-01-17 10:32 pgsql: Close socket in case of errors in setting non-blocking Daniel Gustafsson <dgustafsson@postgresql.org>
2024-01-17 10:33 pgsql: Close socket in case of errors in setting non-blocking Daniel Gustafsson <dgustafsson@postgresql.org>
2024-01-17 10:34 pgsql: Close socket in case of errors in setting non-blocking Daniel Gustafsson <dgustafsson@postgresql.org>
2024-01-17 10:35 pgsql: Close socket in case of errors in setting non-blocking Daniel Gustafsson <dgustafsson@postgresql.org>
2024-01-17 10:35 pgsql: Close socket in case of errors in setting non-blocking Daniel Gustafsson <dgustafsson@postgresql.org>
2024-01-17 10:35 pgsql: Close socket in case of errors in setting non-blocking Daniel Gustafsson <dgustafsson@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox