-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Implement DTLSSocket and fix non-blocking connections on TLSSocket #8659
Conversation
@kjbracey-arm Please review |
@kjbracey-arm When you get the chance, this needs a review. |
@SeppoTakalo We'll be aiming to take in #8651 first since its last test failures were not due to the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine, just formatting nits and note for the future.
features/netsocket/DTLSSocket.cpp
Outdated
close(); | ||
} | ||
|
||
#endif // MBEDTLS_SSL_CLI_C |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing newline. Same in lots of other files
|
||
if (context->_timer_event_id == 0) { | ||
return -1; | ||
} else if (context->_timer_expired) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems current implementation of mbed TLS doesn't rely on the intermediate delay, but nothing in the documentation says you can skip it. I'd suggest putting it in for completeness in a later patch.
|
/morph build |
Build : SUCCESSBuild number : 3629 Triggering tests/morph test |
Exporter Build : FAILUREBuild number : 3236 |
Export falures do not appear to be due to PR. Will restart when able. |
Test : FAILUREBuild number : 3412 |
Unrelated test failure: |
@SeppoTakalo Yup. Will restart when able. |
This failure is tracked in the issues and one potentional fix was created as I understood. We will restart CI as soon as possible (one rollup now in there). We might create another rollup of few 5.11 unrelated PR (this would be a good candidate to be included). |
@SeppoTakalo Fyi, in trying to create #8760 (Rollup PR) with this PR (to expidite retesting while keeping CI load low), I found that a merge conflict is created when this PR is merged with #8647. I've put 8647 in instead of this PR because 1) the other PR is a day older, and 2) I suspect that rebase resolution will be more straightforward with this PR than for 8647. TL;DR: Once #8760 passes and is merged, this PR will need a rebase because of a merge conflict with #8647. |
will add.. just a sec |
@0xc0170 fixed! |
Build : FAILUREBuild number : 3676 |
Exporter Build : FAILUREBuild number : 3277 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build failures look related, there are unrecognized tokens reported in 2 header files
@@ -0,0 +1,22 @@ | |||
#ifndef DTLSSOCKETWRAPPER_H |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file misses the license header
Oh nice... UTF-8. Both issues fixed now.
|
/morph build |
Build : SUCCESSBuild number : 3683 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 3286 |
Test : FAILUREBuild number : 3459 |
^^ known failures , still investigating |
Info: This PR has been re-bundled into a new rollup PR (#8838 ). No further work is needed here, as once that PR is merged, this PR will also be closed and marked as merged. |
Description
Implement DTLSSocketWrapper and fix non-blocking connections on TLSSocket
DTLSSocketWrapper is equivalent of TLSSocketWrapper but uses datagram mode
and timers for handling Mbed TLS timeouts.
Non-blocking connections were not working earlier, now fixed for both
secure socket modes.
This requires changes once #8651 goes in, so pending for that one, or if we merge this before, I need to rework the #8651
Pull request type