Re: pq_eof() broken with SSL

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bear Giles <bgiles(at)coyotesong(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pq_eof() broken with SSL
Date: 2002-05-19 15:17:12
Message-ID: Pine.LNX.4.44.0205191351480.2564-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bear Giles writes:

> I came across another bug in the SSL code. backend/libpq/pqcomm.c:pq_eof()
> calls recv() to read a single byte of data to check for EOF. The
> character is then stuffed into the read buffer.

> The quick fix is to add another USE_SSL block,

So it seems. Do you volunteer to do that?

> a better fix is to explicitly create a new abstraction layer.

Well, this is supposed to be an abstraction already. ;-)

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-05-19 17:37:01 Re: Unbounded (Possibly) Database Size Increase - Toasting
Previous Message Jean-Michel POURE 2002-05-19 10:44:56 Re: [HACKERS] UTF-8 safe ascii() function