mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
prefer server alpn ordering over the client's
This commit is contained in:
parent
cca2732a82
commit
8861502e07
3 changed files with 24 additions and 16 deletions
|
@ -3054,9 +3054,9 @@ else:
|
|||
server_protocols = ['foo', 'bar', 'milkshake']
|
||||
protocol_tests = [
|
||||
(['foo', 'bar'], 'foo'),
|
||||
(['bar', 'foo'], 'bar'),
|
||||
(['bar', 'foo'], 'foo'),
|
||||
(['milkshake'], 'milkshake'),
|
||||
(['http/3.0', 'http/4.0'], 'foo')
|
||||
(['http/3.0', 'http/4.0'], None)
|
||||
]
|
||||
for client_protocols, expected in protocol_tests:
|
||||
server_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue