[GIT-PULLS] [php-src] PR #22707: Fix flaky stream_socket_get_crypto_status handshake test

[email protected] (bukka)
Newsgroups php.git-pulls
Message-ID <k1Oi2IIqQ0RZxn2yIa5xPx1YFMGoa2J8lOZg0eroNqk@main.internal.php.net>
Pull Request: https://github.com/php/php-src/pull/22707
Author: bukka

The test could intermittently fail because a non-blocking TLS handshake can complete in a single stream_socket_enable_crypto() call, so WANT_READ/WANT_WRITE was never observed and $sawWant stayed false.

Route the connection through a plain TCP proxy that forwards the server handshake flight in fragments, forcing the client to see a partial TLS record and report WANT_READ at least once.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.