[riot-notifications] [RIOT-OS/RIOT] gnrc_sock_tcp: add gnrc sock tcp (#16494)

Simon Brummer notifications at github.com
Sun Aug 15 13:12:35 CEST 2021


> That's good news (or maybe bad news as we have a bug in the example code confused)
> 
> I moved the example code to a proper example (#16739) and noticed something else: The example client will not disconnect when the example server disconnects:
> #### client
> 
> ```
> 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
> ```
> 
> #### server
> 
> ```
> 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
> ```
> 
> Maybe there is a bug in the [client code](https://github.com/RIOT-OS/RIOT/pull/16739/commits/1314a12ffdf4a73d3f5d1c90c83f73d1979cd0ef) too?

Not necessarily. Depending on the timing in connection teardown, disconnect can take up to two minutes for its return.
I mentioned this above somewhere.


-- 
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/16494#issuecomment-899034318
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210815/a6672f2f/attachment.htm>


More information about the notifications mailing list