]> granicus.if.org Git - postgresql/commit
Don't set SO_SNDBUF on recent Windows versions that have a bigger default.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 6 Jul 2015 13:10:58 +0000 (16:10 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 6 Jul 2015 13:10:58 +0000 (16:10 +0300)
commit4f33621f3f50286e607a3cdcc1f7a7d51075af95
tree5637e7449f36fdb5ead86c9d62953b778d053f43
parent906e9249494bda975914b78fdd743609e1f83016
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
src/backend/libpq/pqcomm.c