lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] webserver problem


From: Nikolas Karakotas
Subject: Re: [lwip-users] webserver problem
Date: Tue, 9 Jul 2013 22:22:07 +1000

It’s a hole different story if it’s a single file aka connection or serving many. I have seen this issue with my implementation. Not having enough heap and thus a file wasn’t sent. I use a 4K heap and serving the jquery 91k with multiple connections but have optimised the drivers a lot.

-----Original Message----- From: Vincent Cui
Sent: Tuesday, July 09, 2013 10:08 PM
To: Mailing list for lwIP users
Subject: Re: [lwip-users] webserver problem

Dear:

7K RAM for lwIP pool is enough, I use cortex m3 with 128K ram, I allocate 7KB for it. My web server is more heavy than yours. My largest size of file is upto 170KB. It works well too . you should check the RCV_BUFFER NUMBER AND SND_BUFFER NUMBER for it.
In my system, I define them to 2, as for limitation RAM.
My https server works fast too .

I think you should write a receive data thread in loop, and use TCPIP tool to send data in loop to check if there is interrupt or other issue.
Maybe your Ethernet driver has problem too .


Vincent





Vincent Cui
Firmware Engineer Leader
Shanghai Enlogic Electric Technology Co., Ltd.
Room1106, Building A, New Caohejing Business Centre, No.391, Guiping Road, Xuhui District, Shanghai, P.R.China
T: +86 21 34612525, M: +86 13482482211
www.enlogic.com
------------------------------------------------------------------------
Please consider the environment before printing this email.
------------------------------------------------------------------------
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this e-mail in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not use, disclose or distribute this e-mail without the author's prior permission. We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. Any views and/or opinions expressed in this e-mail are of the author only and do not necessarily represent the views of Enlogic.
------------------------------------------------------------------------
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Noam weissman
Sent: 2013年7月9日 PM 8:03
To: Mailing list for lwIP users
Subject: Re: [lwip-users] webserver problem

Hi Marty,

You are absolutely correct it is system dependent.

As you can see from my reply, I used a 7K bytes pool for LwiP.

16M byte is a super computer compared with what I do. I worked with ARM9 with 96K RAM :-)

With just 7K RAM dedicated to LwIP pool I was able to run a WEB server with JQUERY
3 TCP connections, UDP connections etc...

Now let me ask you something. If you have 16M byte RAM why do you use LwIP.
Use Linux with FULL BSD TCP stack. Much better.


BR,
Noam.



-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Pomeroy, Marty
Sent: ג 09 יולי 2013 14:55
To: Mailing list for lwIP users
Subject: Re: [lwip-users] webserver problem


But If I connect other services, all the pages from webserver are not
loaded.

This does look like a resource problem somehow. Possibly a timeout firing before the jquery response completes (not enough CPU power), or insufficient memory to respond, that sort of thing.


Comment to Noam:
As default the MSS size is defined to be 1500 bytes. This is too
large for embedded.

Isn't "too large" implementation dependent? I'm using 1500 on one project where we have 16MB of DRAM. This also reduces the chaining.

Marty


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



************************************************************************************
This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************






************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************




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



reply via email to

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