]> granicus.if.org Git - php/commitdiff
Try to fix intermittent failures of stream_server_reneg_limit.phpt on macos
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 4 Jan 2021 13:31:42 +0000 (14:31 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 4 Jan 2021 13:31:42 +0000 (14:31 +0100)
Make sure the server has started up before we try to connect to it.

ext/openssl/tests/stream_server_reneg_limit.phpt

index 47044b53e8a491d428174e2548089ede45d9054a..999e50c780c9790497d195041a289fe29a498bfe 100644 (file)
@@ -70,6 +70,8 @@ CODE;
 $serverCode = sprintf($serverCode, $certFile);
 
 $clientCode = <<<'CODE'
+    phpt_wait();
+
     $cmd = 'openssl s_client -connect 127.0.0.1:64321';
     $descriptorSpec = [["pipe", "r"], ["pipe", "w"], ["pipe", "w"]];
     $process = proc_open($cmd, $descriptorSpec, $pipes);