server: remove set_npn_protocols()
This function is deprecated in favour of set_alpn_protocols(), which is already called, and is currently broken in Python 3.10, so remove it altogether.
This commit is contained in:
parent
450bfe4082
commit
4e585d5f46
1 changed files with 0 additions and 5 deletions
|
@ -303,11 +303,6 @@ class MatrixServer(object):
|
|||
# Enable http2 negotiation on the ssl context.
|
||||
self.ssl_context.set_alpn_protocols(["h2", "http/1.1"])
|
||||
|
||||
try:
|
||||
self.ssl_context.set_npn_protocols(["h2", "http/1.1"])
|
||||
except NotImplementedError:
|
||||
pass
|
||||
|
||||
self.address = None
|
||||
self.homeserver = None
|
||||
self.client = None # type: Optional[HttpClient]
|
||||
|
|
Loading…
Reference in a new issue