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

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/16831#discussion_r705367194">sys/net/gnrc/sock/gnrc_sock.c</a>:</p>
<pre style='color:#555'>> @@ -117,6 +117,12 @@ ssize_t gnrc_sock_recv(gnrc_sock_reg_t *reg, gnrc_pktsnip_t **pkt_out,
 #ifdef MODULE_XTIMER
     xtimer_t timeout_timer;
 
+    /* xtimer_spin would make this never receive anything avoid it by setting
+    /* the minimal not spinning timeout */
+    if (timeout < XTIMER_BACKOFF){
</pre>

⬇️ Suggested change
<pre style="color: #555">-    if (timeout < XTIMER_BACKOFF){
+    if (timeout < XTIMER_BACKOFF) {
</pre>


<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/16831#pullrequestreview-750393723">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYEMM62DTP2452BKLCTUBC5JHANCNFSM5DXGHQIQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABE7WYDJFNNDAJKIB2U6PJTUBC5JHA5CNFSM5DXGHQI2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOFS5BS6Y.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/16831#pullrequestreview-750393723",
"url": "https://github.com/RIOT-OS/RIOT/pull/16831#pullrequestreview-750393723",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>