682
714
* Hack to deal with the fact that some kernels will only give us back
683
715
* 1 packet per recv() call, even if we asked for more and there is
685
717
* loop back to recv() again immediately, until we run out of data or
686
718
* buffer space. Without this, the block-and-restart behavior of
687
719
* libpq's higher levels leads to O(N^2) performance on long messages.
689
721
* Since we left-justified the data above, conn->inEnd gives the
691
723
* the message "long" once we have acquired 32k ...
693
725
if (conn->inEnd > 32768 &&