Re: Non-blocking communication between a frontend and a backend (pqcomm)
От | Fujii Masao |
---|---|
Тема | Re: Non-blocking communication between a frontend and a backend (pqcomm) |
Дата | |
Msg-id | 3f0b79eb0907270155h43c99cbcw217d0d908749225b@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Non-blocking communication between a frontend and a backend (pqcomm) (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Non-blocking communication between a frontend and a backend (pqcomm)
|
Список | pgsql-hackers |
Hi, On Sat, Jul 25, 2009 at 8:39 AM, Tom Lane<tgl@sss.pgh.pa.us> wrote: > Oh, another gripe: I'll bet a nickel that this doesn't work very nicely > under SSL. Bytes available on the socket doesn't necessarily equate to > decrypted payload bytes being available. Depending on how you're using > secure_poll, that might be okay, but it seems like a hazard waiting to > trap unwary maintainers. Is it only necessary to add the comment about how to use secure_poll? There is the assumption that secure_poll must be used with secure_write/read (e.g., in read case, pq_recvbuf instead of native recv should be called after passing pq_wait). So, it's assumed that encrypted data are resolved in those R/W functions and only decrypted data are located in buffer. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center
В списке pgsql-hackers по дате отправления: