]> granicus.if.org Git - python/commit
bpo-33654: Support BufferedProtocol in set_protocol() and start_tls() (GH-7130)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 28 May 2018 18:50:45 +0000 (11:50 -0700)
committerGitHub <noreply@github.com>
Mon, 28 May 2018 18:50:45 +0000 (11:50 -0700)
commitbc3a002e7d5a921e233a5ee0b0f5610c6510b647
tree7ba7161a4106d7f50f925b1fdd04fbbc95579048
parentf8fdb368e3d8d048bffc248fbe1023651c276671
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
(cherry picked from commit dbf102271fcc316f353c7e0a283811b661d128f2)

Co-authored-by: Yury Selivanov <yury@magic.io>
13 files changed:
Doc/library/asyncio-protocol.rst
Lib/asyncio/base_events.py
Lib/asyncio/proactor_events.py
Lib/asyncio/protocols.py
Lib/asyncio/selector_events.py
Lib/asyncio/sslproto.py
Lib/asyncio/unix_events.py
Lib/test/test_asyncio/test_buffered_proto.py
Lib/test/test_asyncio/test_events.py
Lib/test/test_asyncio/test_proactor_events.py
Lib/test/test_asyncio/test_selector_events.py
Lib/test/test_asyncio/test_sslproto.py
Misc/NEWS.d/next/Library/2018-05-26-13-09-34.bpo-33654.IbYWxA.rst [new file with mode: 0644]