lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] lwip tcp hangup


From: Simon Goldschmidt
Subject: Re: [lwip-users] lwip tcp hangup
Date: Thu, 01 Sep 2011 11:23:01 +0200

vincent cui <address@hidden> wrote:
> while (1) 
>       {
>         clientfd = lwip_accept(lSocket, (struct sockaddr*)&client_addr,
> &addrlen);
>               if (clientfd > 0)
>               {
>                       xTaskCreate( httphandler, NULL, 128, (void *)&clientfd,
> HTTP_TASK_PRIORITY, NULL );
>                       vTaskDelay(100);
>               }
>               else
>               {
>                       lwip_close (clientfd);
>               }
>     }
> 
> 
> I have added it after accept loop.... 

No, after the accept() call, but before the next accept() call in the loop, so 
between 2 calls to accept(), you will delay.

Simon
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de



reply via email to

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