[php-src] PR #13895: Fix GH-13860: Incorrect PHP_STREAM_OPTION_CHECK_LIVENESS case in ext/openssl/xp_ssl.c - causing use of dead socket
| From: | nielsdos | Date: | Fri, 05 Apr 2024 21:22:42 +0000 |
| Subject: | [php-src] PR #13895: Fix GH-13860: Incorrect PHP_STREAM_OPTION_CHECK_LIVENESS case in ext/openssl/xp_ssl.c - causing use of dead socket | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25638@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13895
Author: nielsdos
php_socket_errno() may return a stale value when recv returns a value >= 0. As such, the liveness
check is wrong.
This is the same bug as #70198 (fixed in GH-1456). So we fix it in the same way.