1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

sockets adding TCP_QUICKACK constant.

having tigher control on ACK delays, difference is the setting
is `volatile` as it can be turned off by the kernel if not set
 explicitally set otherwise on the socket.

Closes GH-10145.
This commit is contained in:
David Carlier
2022-12-21 16:31:18 +00:00
parent 84988d2093
commit 9c2572565a
4 changed files with 14 additions and 1 deletions

2
NEWS
View File

@@ -70,6 +70,8 @@ PHP NEWS
over socket binding for a cpu core. (David Carlier)
. Added SKF_AD_QUEUE for cbpf filters. (David Carlier)
. Added socket_atmark if send/recv needs using MSG_OOB. (David Carlier)
. Added TCP_QUICKACK constant, to give tigher control over
ACK delays. (David Carlier)
- Standard:
. E_NOTICEs emitted by unserialize() have been promoted to E_WARNING. (timwolla)

View File

@@ -105,6 +105,7 @@ PHP 8.3 UPGRADE NOTES
- Sockets:
. SO_ATTACH_REUSEPORT_CBPF (Linux only).
. TCP_QUICKACK (Linux only).
========================================
11. Changes to INI File Handling

View File

@@ -1699,6 +1699,13 @@ const SO_DETACH_FILTER = UNKNOWN;
*/
const SO_DETACH_BPF = UNKNOWN;
#endif
#if defined(TCP_QUICKACK)
/**
* @var int
* @cvalue TCP_QUICKACK
*/
const TCP_QUICKACK = UNKNOWN;
#endif
/**
* @strict-properties

View File

@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 4fb48cdd2188e8834fd2210027adc1072e885d6e */
* Stub hash: abec5e538a69c27451c0cac0a19a92fc6df667eb */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_socket_select, 0, 4, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(1, read, IS_ARRAY, 1)
@@ -988,6 +988,9 @@ static void register_sockets_symbols(int module_number)
#if defined(SO_DETACH_BPF)
REGISTER_LONG_CONSTANT("SO_DETACH_BPF", SO_DETACH_BPF, CONST_PERSISTENT);
#endif
#if defined(TCP_QUICKACK)
REGISTER_LONG_CONSTANT("TCP_QUICKACK", TCP_QUICKACK, CONST_PERSISTENT);
#endif
}
static zend_class_entry *register_class_Socket(void)