lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Recovering from network outage


From: Thompson, Jeff
Subject: [lwip-users] Recovering from network outage
Date: Mon, 12 Apr 2021 20:03:40 +0000

How can I recover from a network outage? I leave the cable from my system to the network switch connected, but pull the cable from the network switch to the cloud. Detecting that the server I was talking to is no longer talking is easy enough, but how do I recover? I’m using a plain old socket to make the connection, and lwIP_send/lwIP_recv) for data transfer of an HTTPS GET request.

 

I start up a timer that expires if there is no server response after a minute; much more than enough, I’m told. But what then? Can the timer callback do anything to make lwIP_send or lwIP_recv return to the calling task, preferably with an error?

 

Jeff Thompson  |  Senior Electrical Engineer-Firmware
+1 704 752 6513 x1394
www.invue.com

 


reply via email to

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