Re: BUG: possible busy loop when connection is closed while trying to establish SSL connection

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG: possible busy loop when connection is closed while trying to establish SSL connection
Дата
Msg-id 25651.1095948495@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG: possible busy loop when connection is closed  (Hannu Krosing <hannu@tm.ee>)
Ответы Re: BUG: possible busy loop when connection is closed  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-hackers
Hannu Krosing <hannu@tm.ee> writes:
>> One possibility is to forget the direct call to recv() and use
>> pqReadData --- since conn->ssl isn't set yet, and we aren't expecting
>> the server to send more than one byte, this should in theory be safe.

> I was scared by the comment before recv(...,1,0) which said we must be
> careful not to read more than 1 byte

When I wrote that, I was trying to assume as little as possible about
the SSL protocol.  The only way there could be a problem is if the
server is first to send during the SSL negotiation handshake; which
seems odd but not impossible.  Anyone know for sure?
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: NOFIXADE / NOPRINTADE
Следующее
От: Tom Lane
Дата:
Сообщение: Re: NOFIXADE / NOPRINTADE