Skip site navigation (1) Skip section navigation (2)

pgsql: Instead of a bare recv() to read the server's response to an SSL

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Instead of a bare recv() to read the server's response to an SSL
Date: 2005-01-06 20:06:59
Message-ID: 20050106200659.23FD53A4B06@svr1.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/interfaces/libpq:
        fe-connect.c (r1.297 -> r1.298)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/fe-connect.c.diff?r1=1.297&r2=1.298)

pgsql-committers by date

Next:From: Tom LaneDate: 2005-01-06 20:53:36
Subject: pgsql: Adjust examples to avoid using keywords as identifiers, per Honda
Previous:From: Tom LaneDate: 2005-01-06 18:29:15
Subject: pgsql: Adjust lookup of client-side profile files (.pgpass and so on) as

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group