Don't set SO_SNDBUF on recent Windows versions that have a bigger default.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 4f33621f3f50286e607a3cdcc1f7a7d51075af95
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2015-07-06T13:10:58Z
Releases: 9.6.0
Don't set SO_SNDBUF on recent Windows versions that have a bigger default.

It's unnecessary to set it if the default is higher in the first place.
Furthermore, setting SO_SNDBUF disables the so-called "dynamic send
buffering" feature, which hurts performance further. This can be seen
especially when the network between the client and the server has high
latency.

Chen Huajun

Files

PathChange+/−
src/backend/libpq/pqcomm.c modified +38 −6