Re: libpq SSL with non-blocking sockets

Поиск
Список
Период
Сортировка
От Steve Singer
Тема Re: libpq SSL with non-blocking sockets
Дата
Msg-id BLU0-SMTP93E0029461ABF3EFF6DDF98E580@phx.gbl
обсуждение исходный текст
Ответ на Re: libpq SSL with non-blocking sockets  (Martin Pihlak <martin.pihlak@gmail.com>)
Список pgsql-hackers
On 11-06-28 02:14 PM, Martin Pihlak wrote:
>
> Hmm, I thought I thought about that. There was a check in the original
> patch: "if (conn->sslRetryBytes || (conn->outCount - remaining)>  0)"
> So if the SSL retry buffer was emptied it would return 1 if there was
> something left in the regular output buffer. Or did I miss something
> there?
>

The issue I saw in the original patch was that at that point in the 
function, sslRetryBytes could be zero (if the data was sent) but  
conn->outCount - remaining would be an incorrect value since "remaining" 
is the number of bytes left to send from sslRetryBuf NOT 
conn->outBuffer.   This is no longer an issue in the updated patch.
I will try to take a closer look at your updated patch in the next few days.



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: how to call the function--pqCatenateResultError()
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Bug in SQL/MED?