Edit report at https://bugs.php.net/bug.php?id=78825&edit=1
ID: 78825
User updated by: vibbow at hotmail dot com
Reported by: vibbow at hotmail dot com
Summary: stream_socket_client works slower than expect
Status: Verified
Type: Bug
Package: Performance problem
Operating System: Windows Server 2019
-PHP Version: 8.0.0 RC4
+PHP Version: 8.1.0 Beta1
Block user comment: N
Private report: N
New Comment:
still reproducible on php 8.1.0 Beta 1
Previous Comments:
------------------------------------------------------------------------
[2020-11-17 07:34:20] vibbow at hotmail dot com
still reproducible on php 8.0.0 RC4
------------------------------------------------------------------------
[2020-11-17 07:29:53] vibbow at hotmail dot com
still reproducible on php 7.4.12
------------------------------------------------------------------------
[2020-01-18 17:50:35] vibbow at hotmail dot com
Can still be reproduced in PHP 7.4.1
------------------------------------------------------------------------
[2020-01-09 14:43:22] vibbow at hotmail dot com
Above registry modify only take effect on some of my PC, not all of them.
There must be something else affect this.
------------------------------------------------------------------------
[2020-01-09 13:58:19] vibbow at hotmail dot com
I think I found a workaround for this issue:
https://www.fixwindowserrors.biz/blog/disable-nagle-algorithm-in-windows-10
Add TcpAckFrequency and TCPNoDelay to registry (to disable TCP_NODELAY) did solve the problem.
So this issue is related to TCP_NODELAY feature.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=78825
--
Edit this bug report at https://bugs.php.net/bug.php?id=78825&edit=1