-
Notifications
You must be signed in to change notification settings - Fork 7.9k
tests(ext-curl): fix HTTP/2 Server Push tests #10669
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
dunglas
commented
Feb 22, 2023
•
edited
Loading
edited
- Use Caddy to expose local URLs supporting Server Push
- Unskip tests for Server Push
- Add a new test for Server Push
e36f8f4
to
0f52bfb
Compare
93516ef
to
43a4d5e
Compare
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.
Great! I'm not well versed with HTTP and Curl, I had to look up how these options work but from what I can tell the test looks good. Thank you 🙂
b61d731
to
834673d
Compare
Sorry for the late response. I see the check was changed to |
The main problem is that That's why I used I could try to use curl instead of |
I guess that could be moved to a shared skipif file if too long. If it doesn't work well I won't object to a env var. |
9505fb1
to
fa79f6d
Compare
fa79f6d
to
a6bc8a8
Compare
@iluuu1994 is there anything more to do on this patch? |
Fwiw, most browsers and servers drop support for http2 server push. Not sure whether keeping it in php is the right direction See e.g. I am no expert, just mention what I found by accident |
Indeed Chrome recommends 103 Early Hints (status in PHP: #7025) now, but Server Push is still supported by many tools (server-side and client-side) and will not be removed from the spec. Anyway, enabling these tests is not related to the status of Server Push. As long as the code is part of PHP (and of curl) and officially supported, it should be tested. If we (or curl) remove this feature at some point, then we'll remove the corresponding tests. |
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.
Hi @dunglas! Sorry for the late response, again... I get some segfaults running this locally, do you also get these? The output is from building with --enable-address-sanitizer
.
a6bc8a8
to
1606f89
Compare
1606f89
to
b0911cc
Compare
Segfaults have been fixed in libcurl 8.1.0. I skipped these tests if libcurl version is older. |
At last 😄 Thanks @dunglas! |