[riot-notifications] [RIOT-OS/RIOT] sock_dtls: add timeout to sock_dtls_send and sock_dtls_session_create (#14043)

Martine Lenders notifications at github.com
Thu May 14 12:10:17 CEST 2020

@miri64 commented on this pull request.

>   *
  * @return  0 on success
- * @return  -EAGAIN, if DTLS_HANDSHAKE_TIMEOUT is `0` and no data is available.
+ * @return  -EAGAIN, if @p timeout is `0` and handshake started.

How about this: remove the timeout here and use `session_create` _always_ to just initialize the handshake. It than _has_ to be finished with `sock_dtls_recv()` for which we re-specify the scope as such.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200514/fc4dea4c/attachment.htm>

More information about the notifications mailing list