lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] TCP keep alive info to the application


From: Joel Cunningham
Subject: Re: [lwip-users] TCP keep alive info to the application
Date: Thu, 02 Jun 2016 16:10:56 +0000 (GMT)

Agreed, trying to leverage TCP keepalive information in the application level is incorrect.  The keepalives are used internally by TCP and will abort the connection when communication is lost.  This event is then typically communicated through socket APIs returning an error on next use.

You most likely need an application level heartbeat/keepalive. See this article for information about detecting half-open (stale/dead) connections: http://www.codeproject.com/Articles/37490/Detection-of-Half-Open-Dropped-TCP-IP-Socket-Conne

Joel

On May 30, 2016, at 07:49 AM, "Sergio R. Caprile" <address@hidden> wrote:

Playing the role of the pedantic teacher here, what you want to do
violates the allmighty layer independence of the OSI model. Before the
ISO police comes after you in the form of many unexpected problems, I
suggest you implement your own in-application keep-alive mechanism. Been
there.

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

reply via email to

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