If the connection is idle, I think you'll need to enable keepalives.  I
don't think lwIP is causing this since I have devices with TCP connections
open all day (and they are mostly idle).

 

Bill

 

From: [email protected]
[mailto:[email protected]] On Behalf
Of Francois Bouchard
Sent: Monday, September 28, 2009 10:28 AM
To: [email protected]
Subject: [lwip-users] Connection closes with Echoraw demo

 

HI all,

 

 

The server side (embedded) runs the Echoraw demo, which implements a TCP
Echo Server.  On the Client Side, my PC an Echo client runs and continuously
sends packest, and measure the Round Trip Time.  Client sends Another
message as soon as it receive the echo of the previous one.

 

That runs fine for a while, but after few time (mostly random I would say,
although it can run for a few hours) the TCP connection terminates by itself
!

 

I think server does'nt have the time to send ACK.  Should I pause client
apps once in a while to let the server send acks?

 

Attached is the wireshark file when the TCP connection stops.

 

regards,

 

FB

 

_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to