Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix HTTP/1.0 'Keep-Alive' handling in http_client#1032

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@garethsb
Copy link
Contributor

No description provided.

@BillyONeal
Copy link
Member

I'm somewhat concerned with making the http_version field public because the other backends don't understand that, and callers could get the idea that we're going out of our way to support a 1.0 (rather than 1.1) mode. Perhaps some friends are in order?

There's also a concern here that this theoretically could expose one connection in the connection pool to both HTTP versions; but the version probably should probably be consistent across a connection.

@garethsb
Copy link
ContributorAuthor

garethsb commentedJan 28, 2019
edited
Loading

Thanks for the review. I wasn't intending to make it any more public than it was - just add it to the internal implementation ofhttp_response as well ashttp_request. It's still not exposed from the actual user-facinghttp_response class.

@garethsb
Copy link
ContributorAuthor

Regarding this point:

There's also a concern here that this theoretically could expose one connection in the connection pool to both HTTP versions; but the version probably should probably be consistent across a connection.

I don't have a particular opinion on this, except that if a client makes an HTTP/1.1 request, it may get a HTTP/1.0 response, so the connection changes at that point at least?

@garethsb
Copy link
ContributorAuthor

@BillyONeal If there any particular changes that would enable you to merge this to master, please let me know.

It would be possible to avoid storing thehttp_version in the internal_http_response class and instead pass it through theasio_context::read_headers call, though I prefer the current PR version at the moment.

Thanks

@BillyONeal
Copy link
Member

Looking at some of the types here again, it looks like we're already leaking internal implementation details all over the place prefixed with a _leading_underscore, so I guess this doesn't change the current status quo.

The remaining non-flaky test failure is from an Android SDK update that got pushed on us by Azure Pipelines I'm trying to fix in a separate PR.

Thanks for your contribution!

garethsb reacted with thumbs up emoji

@BillyONealBillyONeal merged commitf940d55 intomicrosoft:masterFeb 11, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@garethsb@BillyONeal

[8]ページ先頭

©2009-2025 Movatter.jp