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

Simon Brummer notifications at github.com
Tue Aug 10 13:22:37 CEST 2021


> 
> 
> > If you try to establish a new connection before sock_tcp_disconnect was finisched, the only TCB that could accept the connection is still in use.
> 
> How do I know `sock_tcp_disconnect()` has finished? Shouldn't it just block?
> And since I kill the other half of the connection, I don't expect any response (unless Linux is taking care of this).

Yes it blocks. Internally it tries to close the connection. If the other side doesn't send anymore it still has to wait two minutes before it is unblocked. This has something todo with slow roundtrip times from the early internet. So if you try to open a new connection before sock_tcp_disconnect finished it must fail. 

-- 
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-895947775
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210810/697f529c/attachment.htm>


More information about the notifications mailing list