Re: [lwip-users] heap problem with chrome

2017-03-23 Thread Mohamed Hnezli
I did,  currently I am working on an other task in parrallel, so I'll try
it later, thank you a lot

On 22 March 2017 at 17:05, goldsimon  wrote:

>
>
> Mohamed Hnezli wrote:
> > what makes me confused
> > is that there is no problem with firefox
>
> Did you read my mail you replied to?
>
> Simon
>
> ___
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>



-- 
Mohamed HNEZLI
Computer Science Engineer Student
  NSCS_Tunisia
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] heap problem with chrome

2017-03-22 Thread goldsimon


Mohamed Hnezli wrote:
> what makes me confused
> is that there is no problem with firefox

Did you read my mail you replied to?

Simon

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] heap problem with chrome

2017-03-22 Thread Mohamed Hnezli
Hi Naom,
Thank you for aswering, that's usefull

On 22 March 2017 at 11:45, Noam Weissman <n...@silrd.com> wrote:

> Hi,
>
>
>
> I am not familiar with netconn API but I will try..
>
>
>
> Every browser implements the protocol a bit differently. The data fields
> in the HTTP may not be
>
> In the same order and sometimes (IE) are very long… That leads to problems
> when your code
>
> Is very optimized and unexpected.
>
>
>
> I found that on the hard way when I was working on HTTP myself. Use
> Wireshark and maybe
>
> debug printouts in your own code to see what is the difference.
>
>
>
> I suggest using the RAW API HTTP server as it is used by many programmers.
>
>
>
> BR,
>
> Noam.
>
>
>
> *From:* lwip-users [mailto:lwip-users-bounces+noam=silrd@nongnu.org] *On
> Behalf Of *Mohamed Hnezli
> *Sent:* Wednesday, March 22, 2017 10:42 AM
> *To:* Mailing list for lwIP users
> *Subject:* Re: [lwip-users] heap problem with chrome
>
>
>
> hello again,
>
> I am using HTTP server example using the netconn API,
>
> I have a strict memory constraint but what makes me confused
>
> is that there is no problem with firefox
>
>
>
>
>
> On 21 March 2017 at 18:44, goldsi...@gmx.de <goldsi...@gmx.de> wrote:
>
> Mohamed Hnezli wrote:
>
> when reloading a tab in chrome or adding new one the server crashs. Note
> that the server runs well with firefox.
> Any help please ?
>
>
> Last time I tested those two browsers, chrome used more simultaneous
> connections to my server than firefox. That explains the difference. Your
> server shouldn't crash though. That's a bug in your port or application and
> you should fix it :-)
>
> Simon
>
> ___
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
>
>
>
> --
>
> Mohamed HNEZLI
>
> Computer Science Engineer Student
>
>   NSCS_Tunisia
>
> ___
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>



-- 
Mohamed HNEZLI
Computer Science Engineer Student
  NSCS_Tunisia
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] heap problem with chrome

2017-03-22 Thread Noam Weissman
Hi,

I am not familiar with netconn API but I will try..

Every browser implements the protocol a bit differently. The data fields in the 
HTTP may not be
In the same order and sometimes (IE) are very long… That leads to problems when 
your code
Is very optimized and unexpected.

I found that on the hard way when I was working on HTTP myself. Use Wireshark 
and maybe
debug printouts in your own code to see what is the difference.

I suggest using the RAW API HTTP server as it is used by many programmers.

BR,
Noam.

From: lwip-users [mailto:lwip-users-bounces+noam=silrd@nongnu.org] On 
Behalf Of Mohamed Hnezli
Sent: Wednesday, March 22, 2017 10:42 AM
To: Mailing list for lwIP users
Subject: Re: [lwip-users] heap problem with chrome

hello again,
I am using HTTP server example using the netconn API,
I have a strict memory constraint but what makes me confused
is that there is no problem with firefox


On 21 March 2017 at 18:44, goldsi...@gmx.de<mailto:goldsi...@gmx.de> 
<goldsi...@gmx.de<mailto:goldsi...@gmx.de>> wrote:
Mohamed Hnezli wrote:
when reloading a tab in chrome or adding new one the server crashs. Note
that the server runs well with firefox.
Any help please ?

Last time I tested those two browsers, chrome used more simultaneous 
connections to my server than firefox. That explains the difference. Your 
server shouldn't crash though. That's a bug in your port or application and you 
should fix it :-)

Simon

___
lwip-users mailing list
lwip-users@nongnu.org<mailto:lwip-users@nongnu.org>
https://lists.nongnu.org/mailman/listinfo/lwip-users



--
Mohamed HNEZLI
Computer Science Engineer Student
  NSCS_Tunisia
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] heap problem with chrome

2017-03-22 Thread Mohamed Hnezli
hello again,
I am using HTTP server example using the netconn API,
I have a strict memory constraint but what makes me confused
is that there is no problem with firefox


On 21 March 2017 at 18:44, goldsi...@gmx.de  wrote:

> Mohamed Hnezli wrote:
>
>> when reloading a tab in chrome or adding new one the server crashs. Note
>> that the server runs well with firefox.
>> Any help please ?
>>
>
> Last time I tested those two browsers, chrome used more simultaneous
> connections to my server than firefox. That explains the difference. Your
> server shouldn't crash though. That's a bug in your port or application and
> you should fix it :-)
>
> Simon
>
> ___
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>



-- 
Mohamed HNEZLI
Computer Science Engineer Student
  NSCS_Tunisia
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] heap problem with chrome

2017-03-21 Thread goldsi...@gmx.de

Mohamed Hnezli wrote:

when reloading a tab in chrome or adding new one the server crashs. Note
that the server runs well with firefox.
Any help please ?


Last time I tested those two browsers, chrome used more simultaneous 
connections to my server than firefox. That explains the difference. 
Your server shouldn't crash though. That's a bug in your port or 
application and you should fix it :-)


Simon

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] heap problem with chrome

2017-03-21 Thread Noam Weissman
Hi Mohamed,

Part of the LwIP contributions you have working HTTP servers. Have you used one 
of these or
created something of your own ?

What is the API that you are using: RAW, Netcon or Socket ?


BR,
Noam.


From: lwip-users [mailto:lwip-users-bounces+noam=silrd@nongnu.org] On 
Behalf Of Mohamed Hnezli
Sent: Tuesday, March 21, 2017 12:51 PM
To: lwip-users@nongnu.org
Subject: [lwip-users] heap problem with chrome

hello,
I'm cuurently using SmartFusion2 SoC and LwIP ontop of FreeRTOS,
I implemented a basic HTTP server over TCP, the problem I am facing is
when reloading a tab in chrome or adding new one the server crashs. Note
that the server runs well with firefox.
Any help please ?
Thank you in advance

--
Mohamed HNEZLI
Computer Science Engineer Student
  NSCS_Tunisia
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] heap problem with chrome

2017-03-21 Thread Mohamed Hnezli
hello,
I'm cuurently using SmartFusion2 SoC and LwIP ontop of FreeRTOS,
I implemented a basic HTTP server over TCP, the problem I am facing is
when reloading a tab in chrome or adding new one the server crashs. Note
that the server runs well with firefox.
Any help please ?
Thank you in advance

-- 
Mohamed HNEZLI
Computer Science Engineer Student
  NSCS_Tunisia
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users