mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-33654: Support BufferedProtocol in set_protocol() and start_tls() (GH-7130)
In this commit: * Support BufferedProtocol in set_protocol() and start_tls() * Fix proactor to cancel readers reliably * Update tests to be compatible with OpenSSL 1.1.1 * Clarify BufferedProtocol docs * Bump TLS tests timeouts to 60 seconds; eliminate possible race from start_serving * Rewrite test_start_tls_server_1
This commit is contained in:
parent
e549c4be5f
commit
dbf102271f
13 changed files with 382 additions and 69 deletions
|
@ -9,7 +9,7 @@ class ReceiveStuffProto(asyncio.BufferedProtocol):
|
|||
self.cb = cb
|
||||
self.con_lost_fut = con_lost_fut
|
||||
|
||||
def get_buffer(self):
|
||||
def get_buffer(self, sizehint):
|
||||
self.buffer = bytearray(100)
|
||||
return self.buffer
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue