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:03:00 +0200

vincent cui <address@hidden> wrote:
> The httphandler definition as followed, please help me to check ...
> It only return a daynamic web page.... 

I'm not sure the code below is a valid webserver, as it seems to mirror back 
received data.

As to the parallel connections: the httphandler function has no delay up to the 
line 'send(..., webpage, ...)' (as the recv should already be in the buffers 
and the send() before can also be buffered). Plus your accept() loop has a 
delay after each successful accept! And if sizeof(WebSide) is small enough, the 
last send can also be buffered, so the whole httphandler function could be 
faster than the delay in the accept loop...

> For FRTOS configuration, I configure it as PREEMPTION

As I said, I don't know anything about FreeRTOS except for recognizing some 
function names...


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]