Magnus Hagander <magnus(at)hagander(dot)net> writes:
> The logic in it is identical to the original import of code in OpenSSL.
> It originally had #ifdefs around how the BIO interface worked. That was
> tidied up in a commit back in 2001. I think it's fair to say it's been
> pretty stable.
Fair enough.
> Do you have a comment around the "should we prepare for read even though
> it's a write" part?
We shouldn't; in fact that would be quite wrong.
regards, tom lane