Re: libpq's multi-threaded SSL callback handling is busted

Поиск
Список
Период
Сортировка
От Jan Urbański
Тема Re: libpq's multi-threaded SSL callback handling is busted
Дата
Msg-id 87oamzufv8.fsf@wulczer.org
обсуждение исходный текст
Ответ на Re: libpq's multi-threaded SSL callback handling is busted  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut writes:

> On 4/3/15 7:44 AM, Jan Urbański wrote:
>> To reiterate: I recognise that not handling the callbacks is not the right
>> answer. But not stomping on callbacks others might have set sounds like a
>> minimal and safe improvement.
>
> I think your patch is okay in that it is not a good idea to overwrite or
> unset someone else's callbacks.  But we shouldn't mistake that for
> fixing the underlying problem.  The only reason this patch appears to
> fix the presented test cases is because other OpenSSL users are also
> misbehaving and/or the OpenSSL interfaces are so stupid that they cannot
> be worked with reasonably.

Yeah, the underlying problem is OpenSSL's idea of handling threads by limiting
itself to providing a function pointer. That's what we have to work with,
sadly.

Faced by such madness, libpq should try to do the sanest possible thing, at
least then if it breaks it's not our fault.

Cheers,
Jan



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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: [PATCH] Add transforms feature
Следующее
От: Andrew Gierth
Дата:
Сообщение: Re: Support UPDATE table SET(*)=...