Skip to content

Commit d87015f

Browse files
committed
ext/sockets: adding Linux's TCP_USER_TIMEOUT constant.
1 parent bc79897 commit d87015f

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ PHP NEWS
5656
. Soap::__setCookie() when cookie name is a digit is now not stored and represented
5757
as a string anymore but a int. (David Carlier)
5858

59+
- Sockets:
60+
. Added the TCP_USER_TIMEOUT constant for Linux to set the maximum time in milliseconds
61+
transmitted data can remain unacknowledged. (James Lucas)
62+
5963
- SPL:
6064
. DirectoryIterator key can now work better with filesystem supporting larger
6165
directory indexing. (David Carlier)

UPGRADING

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ PHP 8.6 UPGRADE NOTES
9090
10. New Global Constants
9191
========================================
9292

93+
- Sockets:
94+
. TCP_USER_TIMEOUT (Linux only).
95+
9396
========================================
9497
11. Changes to INI File Handling
9598
========================================

ext/sockets/sockets.stub.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,13 @@
602602
*/
603603
const TCP_SYNCNT = UNKNOWN;
604604
#endif
605+
#ifdef TCP_USER_TIMEOUT
606+
/**
607+
* @var int
608+
* @cvalue TCP_USER_TIMEOUT
609+
*/
610+
const TCP_USER_TIMEOUT = UNKNOWN;
611+
#endif
605612
#ifdef SO_ZEROCOPY
606613
/**
607614
* @var int

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)