-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
bpo-40968: Send http/1.1 ALPN extension #20959
Conversation
|
@@ -1377,6 +1377,8 @@ def __init__(self, host, port=None, key_file=None, cert_file=None, | |||
self.cert_file = cert_file | |||
if context is None: | |||
context = ssl._create_default_https_context() | |||
# send ALPN extension to indicate HTTP/1.1 protocol |
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.
Are this comment and the functionality out of sync here since http_vsn_str
can be HTTP/1.0
, etc? http/1.1
, http/1.0
, and http/0.9
are all valid ALPN protocol IDs but the comment and changelogs only mention 1.1. This might be fine anyways but something I noticed.
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.
I'm now checking _http_vsn
and only send the ALPN extension when the version is 11
(HTTP/1.1
).
Signed-off-by: Christian Heimes <christian@python.org>
320141f
to
977ec2a
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.
LGTM
@tiran: Please replace |
Signed-off-by: Christian Heimes <christian@python.org>
Signed-off-by: Christian Heimes christian@python.org
https://bugs.python.org/issue40968