Adjust libpq to avoid deadlock when both client and server want to send

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 9dfdbef345390124eaf993f6289e8ae796aa6918
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-10-19T21:36:41Z
Releases: 7.4.1
Adjust libpq to avoid deadlock when both client and server want to send
data, and both have filled the transmission buffers.  One scenario where
this can happen was illustrated here:
http://archives.postgresql.org/pgsql-hackers/2003-04/msg00979.php

Files

PathChange+/−
src/interfaces/libpq/fe-exec.c modified +12 −1
src/interfaces/libpq/fe-misc.c modified +19 −2