[php-src] PR #20381: Add stream socket keepalive context options
| From: | bukka | Date: | Mon, 03 Nov 2025 21:29:30 +0000 |
| Subject: | [php-src] PR #20381: Add stream socket keepalive context options | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-33913@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/20381
Author: bukka
This adds so_keepalive, tcp_keepidle, tcp_keepintvl and tcp_keepcnt stream socket context options
that are used to set their upper case C macro variants by setsockopt function.
The test requires sockets extension and just tests that the values are being set. This is because a
real test would be slow and difficult to show that those options really work due to how they work
internally.