Skip to content
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-31632: (asyncio) remove local reference to app protocol in _SSLProtocolTransport #3817

Merged
merged 1 commit into from
Oct 19, 2017

Conversation

jlacoline
Copy link
Contributor

@jlacoline jlacoline commented Sep 29, 2017

Fixes an issue about the set_protocol() method of class _SSLProtocolTransport https://bugs.python.org/issue31632.

get_protocol() and set_protocol() methods now act on right protocol instance (i.e. _ssl_protocol._app_protocol).
The reference to the app protocol was removed from _SSLProtocolTransport since it is not used anymore (and it will reduce the risk of similar mistakes in the future).
A test case was added to control the get_protocol / set_protocol feature.

https://bugs.python.org/issue31632

@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

Thanks again to your contribution and we look forward to looking at it!

@jlacoline jlacoline changed the title bpo 31632 - asyncio: remove local reference to app protocol in _SSLProtocolTransport bpo-31632: (asyncio) remove local reference to app protocol in _SSLProtocolTransport Sep 29, 2017
@Mariatta Mariatta requested a review from 1st1 October 3, 2017 21:22
@1st1
Copy link
Member

1st1 commented Oct 4, 2017

Looks OK. Please add a NEWS entry.

@jlacoline
Copy link
Contributor Author

News entry added

@1st1 1st1 merged commit ea2ef5d into python:master Oct 19, 2017
@miss-islington
Copy link
Contributor

Thanks @jlacoline for the PR, and @1st1 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 19, 2017
@bedevere-bot
Copy link

GH-4052 is a backport of this pull request to the 3.6 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants