Skip to content

Commit 9c25725

Browse files
committed
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.
1 parent 84988d2 commit 9c25725

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ PHP NEWS
7070
over socket binding for a cpu core. (David Carlier)
7171
. Added SKF_AD_QUEUE for cbpf filters. (David Carlier)
7272
. Added socket_atmark if send/recv needs using MSG_OOB. (David Carlier)
73+
. Added TCP_QUICKACK constant, to give tigher control over
74+
ACK delays. (David Carlier)
7375

7476
- Standard:
7577
. E_NOTICEs emitted by unserialize() have been promoted to E_WARNING. (timwolla)

UPGRADING

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ PHP 8.3 UPGRADE NOTES
105105

106106
- Sockets:
107107
. SO_ATTACH_REUSEPORT_CBPF (Linux only).
108+
. TCP_QUICKACK (Linux only).
108109

109110
========================================
110111
11. Changes to INI File Handling

ext/sockets/sockets.stub.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,6 +1699,13 @@
16991699
*/
17001700
const SO_DETACH_BPF = UNKNOWN;
17011701
#endif
1702+
#if defined(TCP_QUICKACK)
1703+
/**
1704+
* @var int
1705+
* @cvalue TCP_QUICKACK
1706+
*/
1707+
const TCP_QUICKACK = UNKNOWN;
1708+
#endif
17021709

17031710
/**
17041711
* @strict-properties

ext/sockets/sockets_arginfo.h

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)