Don't set SO_SNDBUF on recent Windows versions that have a bigger default.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/libpq/pqcomm.c | modified | +38 −6 |