<p></p>
<p><b>@brummer-simon</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/16494#discussion_r685868487">tests/gnrc_sock_tcp/main.c</a>:</p>
<pre style='color:#555'>> +    int timeout = atol(argv[1]);
+    unsigned to_receive = atol(argv[2]);
</pre>
<p>Without a timeout, you basically trigger non-blocking behavior. If no data is available, -EAGAIN ist returned. This is not a fault of the implementation, the test just tries to continue to read until the required amount of data is available. The test assumes that amount of data that should be read, is actually sent.</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/16494#discussion_r685868487">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYHC56NOKWI6NVMAW5LT4DZDJANCNFSM45KSNSZA">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&utm_campaign=notification-email">Android</a>.<img src="https://github.com/notifications/beacon/ABE7WYCM54KRVYT5TXIMKNTT4DZDJA5CNFSM45KSNSZKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOFNEXYYY.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/16494#discussion_r685868487",
"url": "https://github.com/RIOT-OS/RIOT/pull/16494#discussion_r685868487",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>