lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Connection closes with Echoraw demo


From: Francois Bouchard
Subject: Re: [lwip-users] Connection closes with Echoraw demo
Date: Mon, 28 Sep 2009 16:39:39 -0400

Oups... wrong subject I'm sorry  _ it should refer to [help, stuck in endless loop inside mem_malloc()]
 
----- Original Message -----
Sent: Monday, September 28, 2009 4:34 PM
Subject: Re: [lwip-users] Connection closes with Echoraw demo

Let me refine my post.
 
I'm aware it could be that the application is missing some heap, but I need to prove it instead of just inscrease the memory size, and hope that it was the solution.
 
Normal behaviour is to assert if no heap is available.  Now sometime it does that, but not always.  Sometime programs stays stuck in mem_malloc() !
it seems that ptr does'nt always scan thru 10240
 
My memory config is :
 #define MEM_SIZE    (10*1024)
#define MEM_ALIGNMENT     4 
----- Original Message -----
Sent: Monday, September 28, 2009 11:01 AM
Subject: Re: [lwip-users] Connection closes with Echoraw demo

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 -----
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: address@hidden [mailto:address@hidden On Behalf Of Francois Bouchard
Sent: Monday, September 28, 2009 10:28 AM
To: address@hidden
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
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users


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


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

reply via email to

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