You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I'm experiencing an issue with random TransportException errors (seems to be server side related) so I'm attempting to use HTTP 1.1 instead of 2.0. The problem is, HttpClient always seems to use 2.0 even when specifying otherwise.
I also tried passing http_version => '1.1' to the $options parameter of request, still uses 2.0. Is there something I'm missing?
If I disable http2 on the httpd side (nginx) then it uses 1.1 as you'd expect. I should still be able to use 1.1 if 2.0 is enabled server side though right?
Example output with $r->getInfo('debug') from my logs:
… (fancyweb)
This PR was merged into the 4.4 branch.
Discussion
----------
[HttpClient][CurlHttpClient] Fix http_version option usage
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | #37402
| License | MIT
| Doc PR | -
Ref #36422
If the scheme is https, we should only set http version 2.0 if the http_version is not specified.
Commits
-------
2676902 [HttpClient][CurlHttpClient] Fix http_version option usage
Symfony version(s) affected: 4.4.10
Description
I'm experiencing an issue with random TransportException errors (seems to be server side related) so I'm attempting to use HTTP 1.1 instead of 2.0. The problem is, HttpClient always seems to use 2.0 even when specifying otherwise.
I have the following in framework.yaml:
I also tried passing
http_version => '1.1'
to the$options
parameter ofrequest
, still uses 2.0. Is there something I'm missing?If I disable http2 on the httpd side (nginx) then it uses 1.1 as you'd expect. I should still be able to use 1.1 if 2.0 is enabled server side though right?
Example output with $r->getInfo('debug') from my logs:
The text was updated successfully, but these errors were encountered: