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

Aiman Ismail notifications at github.com
Wed May 13 10:09:15 CEST 2020


@pokgak commented on this pull request.



> +    if (sock_dtls_send(&dtls_sock, &session, data, datalen, 0) < 0) {
         puts("Error sending data");
     }
     else {
         printf("Sent DTLS message\n");
 
         uint8_t rcv[512];
-        if (sock_dtls_recv(&dtls_sock, &session, rcv, sizeof(rcv), SOCK_NO_TIMEOUT) < 0) {
+        if (sock_dtls_recv(&dtls_sock, &session, rcv, sizeof(rcv), 0) < 0) {

You're right. I'll change this to 3 seconds. 

-- 
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/14043#discussion_r424250920
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200513/196ab74c/attachment.htm>


More information about the notifications mailing list