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
asyncio get_extra_info() throws exception #73928
Comments
exception on get_extra_info() on closed ssl transport
|
Thanks for the report and PR, but your fix is not obviously correct. In general exceptions are the way in Python that errors are reported, and asking for extra_info on a closed stream is an error. The exception raised is not clear, so perhaps the asyncio folks will want to improve it. Or perhaps I'm wrong and they will want to return None, but I'll be a bit surprised if that is the case :) |
get_extra_info() returns optional transport information, I think it is ok to return None for closed transport. I propose this feature initially, during early tulip development |
Not for this particular asyncio method though, see asyncio PEP [1]. But there's an actual bug in the PR, instead of returning [1] https://www.python.org/dev/peps/pep-3156/#methods-for-all-transports |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: