Richard: I reference to "basicsocketcommandserver" , it is almost as mine. So I suppose mine code is fine. But I also found some problem. 1. configTICK_RATE_HZ, the DEFINE value is 1000ms , It means switching task when tick trigger. So I change it to 5ms. 2. my server code for dealing with GET command will send a big of data, and those data is defined as global variable So It is possible for lwIP hang when new TCP coming but old TCP is not handled done yet..
Does it make sense ? 锘?Vincent Cui Sr.Firmware Engineer Mobile: +8613482482211 Tel: +86 21 34612525x6104 Fax: +86 21 34619770 E-Mail: [email protected] 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:[email protected]] 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: [email protected] > 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: [email protected] > [mailto:[email protected]] 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 > [email protected] > https://lists.nongnu.org/mailman/listinfo/lwip-users > _______________________________________________ > lwip-users mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
