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

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Don't set SO_SNDBUF on recent Windows versions that have a bigge
Дата
Msg-id E1ZC6Do-0002Ui-Fm@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: pgsql: Remove incorrect warning from pg_archivecleanup document.
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Call getsockopt() on the correct socket.