lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] LWIP raw TCP socket disconnection


From: Frédéric Grandjean
Subject: [lwip-users] LWIP raw TCP socket disconnection
Date: Mon, 8 Feb 2016 12:52:43 +0000

Hi,

I’m using LWIP 1.4.1 and I’m facing an issue with “brutal” raw socket disconnection.

 

Imagine the following scenario:

-          Create a TCP_PCB listener (server)

-          On connection from a remote host (a Windows PC), accept it, with all callbacks

-          Now, I remove the Ethernet cable from my application

-          I also exit (brutally) the remote client application

-          Now, I wait 1 minutes and connect back the Ethernet cable

-          LWIP never signals the connection is lost, not the state of the PCB tells me (Still ESTABLISHED)!

 

 

How to detect this kind of disconnection ?

 

Thank you

Fred

 


reply via email to

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