<p></p>
<blockquote>
<p>That's good news (or maybe bad news as we have a bug in the example code confused)</p>
<p>I moved the example code to a proper example (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="971104256" data-permission-text="Title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/16739" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/16739/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/16739">#16739</a>) and noticed something else: The example client will not disconnect when the example server disconnects:</p>
<h4>client</h4>
<pre><code>All up, running the shell now
> send fe80::7837:fcff:fe7d:1aaf 12345 Test
send fe80::7837:fcff:fe7d:1aaf 12345 Test
Read: "Test"
ps
asdsadas
</code></pre>
<h4>server</h4>
<pre><code>main(): This is RIOT! (Version: 2021.10-devel-369-g6fba0-gnrc_sock_tcp-add_gnrc_sock_tcp)
My address is fe80::7837:fcff:fe7d:1aaf
Listening on port 12345
Reading data
Read: "Test"
Disconnected
</code></pre>
<p>Maybe there is a bug in the <a href="https://github.com/RIOT-OS/RIOT/pull/16739/commits/1314a12ffdf4a73d3f5d1c90c83f73d1979cd0ef">client code</a> too?</p>
</blockquote>
<p>Not necessarily. Depending on the timing in connection teardown, disconnect can take up to two minutes for its return.<br>
I mentioned this above somewhere.</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#issuecomment-899034318">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYG5PWFHUJO3QQURVT3T46OKHANCNFSM45KSNSZA">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/ABE7WYE3QI6NSJJURR42QDDT46OKHA5CNFSM45KSNSZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGWLCZTQ.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#issuecomment-899034318",
"url": "https://github.com/RIOT-OS/RIOT/pull/16494#issuecomment-899034318",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>