lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] httpserver problem


From: vincent cui
Subject: Re: [lwip-users] httpserver problem
Date: Tue, 20 Sep 2011 14:55:24 +0000

I ported the chargen module in lwip_contribution package into my FREERTOS 
system, it works fine...

The following piece of code in my server code to deal with each connection from 
client. It seems not to deal with multi-connection .
I tried to create a task to deal, it got same result..I know that webserver in 
pc works in this way .

What you figure out is that the priory connection has not get done and new 
connection comes, it may bring resource conflict , right ?

  while (1) 
  {
    newconn = accept(sock, (struct sockaddr *)&remotehost, (socklen_t *)&size);
    http_server_serve(newconn);
  }

锘?Vincent Cui
Sr.Firmware Engineer
Mobile: +8613482482211
Tel: +86 21 34612525x6104
Fax: +86 21 34619770
E-Mail: address@hidden
Shanghai EnLogic Electric Technology Co., Ltd.
Address: 1104-1106, Building A, No.391, Guiping Road, Xuhui District, Shanghai, 
200233
http://www.enlogic.com

-----Original Message-----
From: FreeRTOS Info [mailto:address@hidden 
Sent: 2011年9月20日 22:48
To: Mailing list for lwIP users
Cc: vincent cui
Subject: Re: [lwip-users] httpserver problem

FreeRTOSConfig.h will be irrelevant.  sys_arch much more relevant.

There are some FreeRTOS examples that demonstrate socket usage in a
multitasking environment - although thus far only a command interpreter,
so nothing that will put the stack under the same load as an HTTP server
has the potential to do.

From what I have read on this list, the normal answer seems to be, there
could be a threading issue with the way your interrupts are interacting
with the stack.

Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for Microcontrollers.
More than 7000 downloads per month.





On 20/09/2011 15:33, vincent cui wrote:
> The bug happen in dynamic...
> If I dump the lwipopt and freertos configuration files.  Do you help to 
> figure it out ?
> 
> ï»?Vincent Cui
> Sr.Firmware Engineer
> Mobile: +8613482482211
> Tel: +86 21 34612525x6104
> Fax: +86 21 34619770
> E-Mail: address@hidden
> Shanghai EnLogic Electric Technology Co., Ltd.
> Address: 1104-1106, Building A, No.391, Guiping Road, Xuhui District, 
> Shanghai, 200233
> http://www.enlogic.com
> 
> -----Original Message-----
> From: address@hidden [mailto:address@hidden On Behalf Of Kieran Mansley
> Sent: 2011Äê9ÔÂ20ÈÕ 22:30
> To: Mailing list for lwIP users
> Subject: Re: [lwip-users] httpserver problem
> 
> On Tue, 2011-09-20 at 14:10 +0000, vincent cui wrote:
>> But I really don't know why lwIP will hang ... 
> 
> It's either (i) a bug in lwIP; or (ii) a bug in your port; or (iii)
> badly configured for the load you're putting it under and has run out of
> resources.
> 
> Kieran
> 
> 
> _______________________________________________
> 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

Attachment: sys_arch.c
Description: sys_arch.c


reply via email to

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