[riot-notifications] [RIOT-OS/RIOT] net/gcoap: support DTLS (#15549)

János Brodbeck notifications at github.com
Fri Jun 4 19:01:44 CEST 2021


@janosbrodbeck commented on this pull request.



> +        if (timeout != SOCK_NO_TIMEOUT) {
+            uint32_t diff = (xtimer_now_usec() - start);
+            timeout = (diff > timeout) ? 0: timeout - diff;
+            is_timed_out = (res < 0) || (timeout == 0);
+        }

This is the mechanism from sock_dtls for blocking handshake in `sock_dtls_send()`. For the case that we receive another msg than the expected in this time, we wait the full timeout time to receive `DTLS_CONNECT`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15549#discussion_r645723219
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210604/0eb752c2/attachment.htm>


More information about the notifications mailing list