]> granicus.if.org Git - postgresql/commit
Instead of a bare recv() to read the server's response to an SSL
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 6 Jan 2005 20:06:58 +0000 (20:06 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 6 Jan 2005 20:06:58 +0000 (20:06 +0000)
commit4717992b4e6b3c752b8e07465011fe68da7e32b8
tree27f1e73d0489cee7c48c534f381128058b4845cc
parenta3f98d579534721d8c2aa890c8dda678f14098d8
Instead of a bare recv() to read the server's response to an SSL
request packet, use pqReadData().  This has the same effect since
conn->ssl isn't set yet and we aren't expecting more than one byte.
The advantage is that we will correctly detect loss-of-connection
instead of going into an infinite loop.  Per report from Hannu Krosing.
src/interfaces/libpq/fe-connect.c