lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #31948] httpd: Improving HTTP Server performance when


From: Marcus Hasenstab
Subject: [lwip-devel] [bug #31948] httpd: Improving HTTP Server performance when SSI is enabled
Date: Thu, 22 Aug 2013 09:27:47 +0000
User-agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)

Follow-up Comment #2, bug #31948 (project lwip):

Hi,
I also ran accross this issue on a lwip 1.3.x, running on an STM32F407.

The basic issue is the limited amount of pbufs set in lwipopts.h by
TCP_SND_QUEUELEN. Each tag produces two additional queue entries. For maximum
performance TCP_SND_QUEUELEN should be adjusted for the number of tags used
per shtml-file.

In httpd.c 'http_send_data', during tag-processing len is set to the number of
chars in a the tag, but never reset. This generates lots of calls to
'tcp_write' and thus queue entries.
I added "len = tcp_sndbuf(pcb);  // set len to full remaining buffer size" at
the end of the case TAG_SENDING, when we switch back to 'hs->tag_state =
TAG_NONE'.

Thanks to goldsimon for pointing me in the right direction and for the lwip.

Cheers,
 Marcus




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?31948>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

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