Bug #78825 [Asn]: stream_socket_client works slower than except

From: Date: Mon, 18 Nov 2019 15:22:30 +0000
Subject: Bug #78825 [Asn]: stream_socket_client works slower than except
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223779@lists.php.net to get a copy of this message
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 except Status: Assigned Type: Bug Package: Performance problem Operating System: Windows Server 2019 PHP Version: 7.3.11 Assigned To: cmb Block user comment: N Private report: N New Comment: That'e weird, I can consistent reproduce this issue. I'll try to replicate my environment on a cloud server and try again. Previous Comments: ------------------------------------------------------------------------ [2019-11-18 12:35:42] cmb@php.net Hmm, I cannot reproduce this when connecting to another machine on the same network, where one runs Windows 10 1903 and the other Windows 10 1909 (tested both directions). Tested with PHP 7.3.11 x64 NTS. ------------------------------------------------------------------------ [2019-11-17 13:48:24] vibbow at hotmail dot com It can also be reproduced on Windows Server 2019 ------------------------------------------------------------------------ [2019-11-17 13:44:24] vibbow at hotmail dot com I can get this reproduced on: Windows 10 1909 x64 PHP 7.3.11 x64 nts PHP 7.3.1 x64 nts PHP 7.2.9 x64 nts PHP 5.6.9 x64 nts If stream_socket_client connect to a local interface ip address, then everything works fine. It can only reproduced by connect to another PC on same network. ------------------------------------------------------------------------ [2019-11-17 13:40:06] cmb@php.net I can't reproduce this; I get something like: 0.83518028259277 0.43416023254395 Similar if I use hrtime() for measuring the performance. Which exact PHP version do you use? ------------------------------------------------------------------------ [2019-11-17 12:33:52] vibbow at hotmail dot com This issue can be reproduced on Windows platform only, on Linux everything works fine. This issue may also affect php extension who used php_stream API, like phpredis. ------------------------------------------------------------------------ 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

« previous php.bugs (#223779) next »