I tried testing the latest candidate w/ openssl 1.1.1-pre8 and noticed
hangs in SSL_peek. This is of course no issue with the 2.4.34
Caveat: I also happen to be on AIX where the perl+openssl is very old.
/* XXX: Should replace setting state with SSL_renegotiate(ssl);
* However, this causes failures in perl-framework currently,
* perhaps pre-test if we have already negotiated?
/* Need to trigger renegotiation handshake by reading.
* Peeking 0 bytes actually works.
* See: http://marc.info/?t=145493359200002&r=1&w=2
SSL_peek(ssl, peekbuf, 0);
1.1.0 HEAD works fine, 1.1.1-pre8 blocks for appdata until reqtimeout
gives up, it seems like the 0 byte numbytes is no longer working