pgsql: Make libpq on windows not try to send chunks larger than 64Kb.

From: mha(at)postgresql(dot)org (Magnus Hagander)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make libpq on windows not try to send chunks larger than 64Kb.
Date: 2008-08-20 11:53:51
Message-ID: 20080820115351.E8192755315@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Make libpq on windows not try to send chunks larger than 64Kb.

Per Microsoft knowledge base article Q201213, early versions of
Windows fail when we do this. Later versions of Windows appear
to have a higher limit than 64Kb, but do still fail on large
sends, so we unconditionally limit it for all versions.

Patch from Tom Lane.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
pgsql/src/interfaces/libpq:
fe-misc.c (r1.133 -> r1.133.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/fe-misc.c?r1=1.133&r2=1.133.2.1)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Meskes 2008-08-20 14:07:17 pgsql: Fixed incorrect argument handling in SET command if argument is a
Previous Message Magnus Hagander 2008-08-20 11:53:49 pgsql: Make libpq on windows not try to send chunks larger than 64Kb.