[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] thttpd 2.25b
Hi Thomas,
Döring Thomas wrote:
Has anyone successfully integrated thttpd 2.25b into microblaze’s uclinux?
I got it working except for some cgi issues. Standard pages are shown as
expected. But starting cgis fails.
I looked at this a while ago, and my recollection is there is a
fundamental flaw in how thttpd does CGI that prevents its proper use on
a !MMU system.
The problem I found was that CGI POST operations larger than PAGE_SIZE
(4k) would block forever due to the use of the interposer process, and
the parent thread blocking semantics of vfork.
My solution was to use the fnord webserver instead of thttpd (it's in
petalinux-dist / uClinux-dist). If you google the uclinux-dev mailing
list archives for my email address and thttpd you should find my
original comments on the subject.
Are there some other issues than vfork I have to consider when porting
the orig code to uclinux?
vfork is the main one - Lots of small memory allocations from userspace
can also cause memory fragmentation that over time may lead to out of
memory situations (many small blocks free, no big ones).
Regards,
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/