Repository navigation
extmod/modussl: Fix ussl read/recv/send/write errors when non-blocking (v2) - #6907
Conversation
c8521c0 to
a8336d3
Compare
There was a problem hiding this comment.
@tve I think this print was left in by accident?
There was a problem hiding this comment.
Honestly, I don't remember. I know that the axtls version prints errors currently and I believe I put that in to make it look the same as now. Also, I believe the errors are not very detailed and this prints more details. Probably best to remove and look at the tests output...
There was a problem hiding this comment.
I'll check it and probably just remove this line.
There was a problem hiding this comment.
This code does nothing because CONFIG_SSL_DIAGNOSTICS is disabled, so I'll just remove this.
There was a problem hiding this comment.
@tve to get the tests/extmod/ussl_basic.py test to pass on unix, this line should be:
if (r == SSL_CLOSE_NOTIFY) {
But I'm not sure if that's exactly correct.
There was a problem hiding this comment.
I removed the check for SSL_ERROR_CONN_LOST. Doing this, as far as I can tell it doesn't make axtls any better or worse at the net_inet/net_hosted tests, and means it still passes the main test suite. We can fix axtls further in subsequent PRs.
a8336d3 to
bd650f7
Compare
Also fix related problems with socket on esp32, improve docs for wrap_socket, and add more tests.
bd650f7 to
2c1299b
Compare
|
Great! |
…ep-sleep allow preserving pin state during deep sleep
This is #6615 rebased, and with tests cleaned up.