[php-src] PR #20708: ext/sockets: adding Linux's TCP_USER_TIMEOUT constant.
| From: | lucasnetau | Date: | Mon, 15 Dec 2025 10:29:47 +0000 |
| Subject: | [php-src] PR #20708: ext/sockets: adding Linux's TCP_USER_TIMEOUT constant. | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34283@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/20708
Author: lucasnetau
Useful to ensure PHP sockets are notified of socket failure when Sockets may be closed incorrectly
and data can no longer be transmitted. eg Firewall dropping connection or peer device failure
(commonly seen with Cloud load balancers).
From tcp(7) :It specifies the maximum amount of time in milliseconds that transmitted data may
remain unacknowledged, or buffered data may remain untransmitted (due to zero window size) before
TCP will forcibly close the corresponding connection and return ETIMEDOUT to the application.
Following https://github.com/php/php-src/pull/13816 for
PR format for socket constants/