Re: Fix a possible socket leak at Windows (src/backend/port/win32/socket.c)

Daniel Gustafsson <daniel@yesql.se>

From: Daniel Gustafsson <daniel@yesql.se>
To: Michael Paquier <michael@paquier.xyz>
Cc: Ranier Vilela <ranier.vf@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2024-01-17T12:53:59Z
Lists: pgsql-hackers
> On 17 Jan 2024, at 07:26, Michael Paquier <michael@paquier.xyz> wrote:
> On Tue, Jan 16, 2024 at 05:25:39PM -0300, Ranier Vilela wrote:

>> Do you have plans or should I register for a commitfest?
> 
> Daniel has stated that he would take care of it, so why not letting
> him a few days?  I don't think that a CF entry is necessary.

It isn't, I've now committed it backpatched down to 12.

--
Daniel Gustafsson




Commits

  1. Close socket in case of errors in setting non-blocking