lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Best way for determining if a TCP connection is dead?


From: Joel Cunningham
Subject: Re: [lwip-users] Best way for determining if a TCP connection is dead?
Date: Wed, 24 Jan 2018 11:16:24 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0



On 01/24/2018 10:35 AM, Chris Seto wrote:
I have some code which works great, based on the echo client example.

I'm working on hardening it, and I'm wondering with how best to deal with a dead TCP connection as a result of the network link being down (ie, Ethernet cable disconnected).

This is a great source for dealing with half-open TCP connections due to all kinds of conditions:

https://www.codeproject.com/Articles/37490/Detection-of-Half-Open-Dropped-TCP-IP-Socket-Conne


The echo client contains conditions for a software termination of the socket (ie, server sends am empty frame), but I don't see anything dealing with a more blunt loss of the connection.

Any advice?

Thanks,
Chris 


_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users
Joel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]