Skip to content
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

Backport of explicit protocol set #1629

Closed
wants to merge 1 commit into from
Closed

Backport of explicit protocol set #1629

wants to merge 1 commit into from

Conversation

@cleptric
Copy link
Member

cleptric commented Nov 6, 2023

Did you accidentally open the PR against the wrong fork? 😄

@j03k64
Copy link
Author

j03k64 commented Nov 6, 2023

Yes! Sorry! Doing a quick bandaid until I can get through dependency hell.

@j03k64 j03k64 closed this Nov 6, 2023
@j03k64 j03k64 deleted the for-10907 branch November 6, 2023 21:34
@j03k64 j03k64 changed the title FOR-10907: Backport of explicit protocol set Backport of explicit protocol set Nov 6, 2023
@Jean85
Copy link
Collaborator

Jean85 commented Nov 8, 2023

@cleptric isn't this a backport of #1542?
Are we sure that we don't need it in 4.x? Do we need to forward-port it?

@j03k64
Copy link
Author

j03k64 commented Nov 8, 2023

@cleptric isn't this a backport of #1542? Are we sure that we don't need it anyway?

I'd say that if a backport was desired, it should be a full backport (guzzle and curl) and not just the curl portion that we use. I got around the dependency issue and ended up upgrading to 3.22 instead of this route anyway.

@Jean85
Copy link
Collaborator

Jean85 commented Nov 8, 2023

Sorry, my worded my reply poorly. I don't think we're interested in backporting the fix onto an old unsupported version. We may be interested in a forward port in 4.x though.

@stayallive
Copy link
Collaborator

stayallive commented Nov 8, 2023

No need, 4.x already has it:

curl_setopt($curlHandle, \CURLOPT_HTTP_VERSION, \CURL_HTTP_VERSION_1_1);

@cleptric
Copy link
Member

cleptric commented Nov 9, 2023

Just for completeness sake.

We could, in theory, bump to HTTP/2 anytime, the bug in cURL does not happen in our HTTP client.

The issue was that the Decoder Plugin sets a TE header with invalid values in an HTTP/2 context. https://github.com/php-http/client-common/blob/676f98fb3785d2c9e1b16aa24d9fcc39066f3f06/src/Plugin/DecoderPlugin.php#L54-L67

See php-http/client-common#230

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants