On 24/04/2020 13:15, Yann Ylavic wrote: > On Fri, Apr 24, 2020 at 1:26 PM Yann Ylavic <ylavic.dev@xxxxxxxxx> wrote: >> >> - Custom input BIO_METHOD (using httpd filters' stack) asserted its >> _ctrl() was never called, so far.. >> The new BIO_eof() calls in codebase, notably from ssl3_read_n(), >> breaks this assertion. >> Handling the case for BIO_CTRL_EOF made it, dunno if others may be >> bitten by that. > > BTW, what is a BIO supposed to do on BIO_CTRL_EOF request when there > is no pending data, some kind of speculative read to check whether the > connection is still up or returning zero lazily is fine? I'd say returning 0 lazily is fine. Matt