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

socketpool/ssl: refactor to use micropython-style "stream protocol", enable MICROPY_PY_IO_IOBASE #7009

Open
jepler opened this issue Oct 6, 2022 · 1 comment
Milestone

Comments

@jepler
Copy link
Member

jepler commented Oct 6, 2022

After #7006 it would be possible to enable ssl without socketpool as a built-in module and instead use the "stream protocol" for ssl to perform operations like read/write/close on a socket.

If a different socket implementation such as https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k was changed to derive its sockets from io.IOBase, then its sockets could be successfully wrapped by an SSLContext.

@jepler jepler added this to the Long term milestone Oct 6, 2022
@jepler
Copy link
Member Author

jepler commented Jun 14, 2024

Leaving this open as it's not resolved by #8954: Using read/write/ioctl "protocols" is a possible enhancement to the existing ability to use wiznet sockets. In particular, "ioctl" is needed to make select.poll (& therefore asyncio) work properlyl

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

No branches or pull requests

1 participant