Hi Bill,

My connection is never idle, i.e. the echo client spits packets like crazy to 
the server, then it die, and I need to reconnect.

But, I did'nt test if the connections stays alive when Idle, but I shure will 
take a look at what you said;

Thanks for the reply, 

Francois
  ----- Original Message ----- 
  From: Bill Auerbach 
  To: 'Mailing list for lwIP users' 
  Sent: Monday, September 28, 2009 10:54 AM
  Subject: RE: [lwip-users] Connection closes with Echoraw demo


  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
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to