Skip to content

Conversation

@jepler
Copy link

@jepler jepler commented Jun 7, 2024

including select. This assumes that the SSL layer is readable/writable exactly when the underlying socket is readable/writable.

Not tested. Will test monday.

Closes #9310

jepler added 6 commits June 7, 2024 14:49
including select. This assumes that the SSL layer is readable/writable
exactly when the underlying socket is readable/writable.
These protocol operations should not raise exceptions, but sometimes
they do. Catch the exception and extract the errno value if available.

At the same time, harmonize the argument types for the underlying C
routines
this makes SSL sockets (which return readable when not yet actually
readable) work better.
@jepler jepler marked this pull request as ready for review June 13, 2024 18:17
@jepler
Copy link
Author

jepler commented Jun 13, 2024

This plays mp3s off https now, about as well as non-https

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Looks good to me.

@jepler jepler merged commit ed5591c into adafruit:main Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SSLSocket: support stream protocol & select

2 participants