-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Test stream_context_tcp_nodelay_server on Windows #17308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1d71c71
to
a278619
Compare
Ah, this doesn't look like a Windows specific issue, but is more generally related to whether ext/socket is built shared or static. On Windows it's usually the former. The simplest solution would be to do what we already do regarding ext/openssl in CI: php-src/.github/scripts/windows/test_task.bat Lines 126 to 127 in b072206
Adding A more general solution would be to load ext/sockets when spawning the worker: php-src/ext/openssl/tests/ServerClientTestCase.inc Lines 99 to 106 in b072206
Additionally passing |
a278619
to
1e7783a
Compare
Ah ok, I was actually looking to that file and completely missed that part. Thanks for pointing that out. I went for the simplest solution as it is also used for OpenSSL. It seems that |
1e7783a
to
9e1b582
Compare
@@ -5,9 +5,6 @@ sockets | |||
--SKIPIF-- | |||
<?php | |||
if (!function_exists("proc_open")) die("skip no proc_open"); | |||
if (substr(PHP_OS, 0, 3) == 'WIN') { | |||
die('skip sockets ext currently does not work in worker on Windows'); | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
somehow it affected Alpinelinux, the test started to fail on all arches
TEST 14298/15946 [ext/standard/tests/streams/stream_context_tcp_nodelay_server.phpt]
========DIFF========
001+
001- server-delay:conn-nodelay
========DONE========
FAIL stream context tcp_nodelay server [ext/standard/tests/streams/stream_context_tcp_nodelay_server.phpt]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
affected only 8.1.32 and 8.2.28
This is to fix stream_context_tcp_nodelay_server which currently does not have socket extension available on Windows in worker.