<p><b>@fjmolinas</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/11818#discussion_r329651263">sys/suit/coap.c</a>:</p>
<pre style='color:#555'>> +    ssize_t res;
+    size_t pdu_len = (pkt->payload - (uint8_t *)pkt->hdr) + pkt->payload_len;
+    uint8_t *buf = (uint8_t*)pkt->hdr;
+
+    /* TODO: timeout random between between ACK_TIMEOUT and (ACK_TIMEOUT *
+     * ACK_RANDOM_FACTOR) */
+    uint32_t timeout = COAP_ACK_TIMEOUT * US_PER_SEC;
+    unsigned tries_left = COAP_MAX_RETRANSMIT + 1;  /* add 1 for initial transmit */
+    while (tries_left) {
+
+        res = sock_udp_send(sock, buf, pdu_len, NULL);
+        if (res <= 0) {
+            DEBUG("nanocoap: error sending coap request, %d\n", (int)res);
+            break;
+        }
+
</pre>
<blockquote>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=23060007" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fjmolinas">@fjmolinas</a> do you have a way to trigger this?</p>
</blockquote>
<p>I was seeing the issue from time to time when setting up a wireless setup for the update or when there where more threads running, I'll try to get a clean way to reproduce.</p>
<p>Otherwise the changes look good.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11818?email_source=notifications&email_token=ABE7WYGAPVNPKB37YTY2TT3QMINIJA5CNFSM4H63VM7KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCGLHIUY#discussion_r329651263">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYCBD33YYESZBEFDEFLQMINIJANCNFSM4H63VM7A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYHARJBSCKSSADDOTXDQMINIJA5CNFSM4H63VM7KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCGLHIUY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11818?email_source=notifications\u0026email_token=ABE7WYGAPVNPKB37YTY2TT3QMINIJA5CNFSM4H63VM7KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCGLHIUY#discussion_r329651263",
"url": "https://github.com/RIOT-OS/RIOT/pull/11818?email_source=notifications\u0026email_token=ABE7WYGAPVNPKB37YTY2TT3QMINIJA5CNFSM4H63VM7KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCGLHIUY#discussion_r329651263",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>