dtls: improve different peer recvfrom and better error reporting on ipv6#6087
Conversation
9c62894 to
5e48823
Compare
julek-wolfssl
left a comment
There was a problem hiding this comment.
Very nice! Better built-in network support is always welcome.
82996c8 to
2466542
Compare
|
This would fix #5999, you might want to add this to the PR description |
|
Retest this please |
2466542 to
0c9d2ec
Compare
|
When |
To correctly have timeout we already depend on haveing a timer, so I think it's ok to allow a no-timeout situation in caseof ASN_NO_TIME |
0c9d2ec to
19ac4db
Compare
Yes but currently, you run the risk of never returning. Maybe at least a counter in that case? Like ignore 10 packets before returning |
19ac4db to
ce380ff
Compare
08a97a9 to
06c620f
Compare
|
jenkins retest this please |
1 similar comment
|
jenkins retest this please |
If EmbedReceiveFrom() returns WANT_READ, a blocking socket will not know how to deal with the error. Retry the recvfrom instead adjusting the timeout.
06c620f to
5182fe3
Compare
|
Jenkins retest this please |
julek-wolfssl
left a comment
There was a problem hiding this comment.
Looks good. Thanks @rizlik!
Description
WANT_READwhich will bother blocking socketswolfSSL_dtls_set_peeris invoked with an IPv6 address when IPv6 support is disabledFixes #5999
Testing
A test was added to the test suite