Обсуждение: pgsql: Don't set SO_SNDBUF on recent Windows versions that have a bigge

Поиск
Список
Период
Сортировка

pgsql: Don't set SO_SNDBUF on recent Windows versions that have a bigge

От
Heikki Linnakangas
Дата:
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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4f33621f3f50286e607a3cdcc1f7a7d51075af95

Modified Files
--------------
src/backend/libpq/pqcomm.c |   44 ++++++++++++++++++++++++++++++++++++++------
1 file changed, 38 insertions(+), 6 deletions(-)