pgsql: Call getsockopt() on the correct socket.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Call getsockopt() on the correct socket.
Date: 2015-07-06 14:06:15
Message-ID: E1ZC72F-0003LK-Jc@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Call getsockopt() on the correct socket.

We're interested in the buffer size of the socket that's connected to the
client, not the one that's listening for new connections. It happened to
work, as default buffer size is the same on both, but it was clearly not
wrong.

Spotted by Tom Lane

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8e33fc1784cbd657a7238ab5639ee1f8f54a3ec0

Modified Files
--------------
src/backend/libpq/pqcomm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2015-07-06 19:18:50 pgsql: Turn install.bat into a pure one line wrapper fort he perl scrip
Previous Message Heikki Linnakangas 2015-07-06 13:14:08 pgsql: Don't set SO_SNDBUF on recent Windows versions that have a bigge