[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: [microblaze-uclinux] thttpd 2.25b
Hi John,
thanks for your reply. I already got thttpd 2.25b working (including cgi) by backporting 2.04's cgi handling into 2.25b. BUT there was another problem concerning the cgi output rerouting.
Now, I tried to get fnord working. Well, it works accept for files larger than 4k. USE_SENDFILE is undef'ed. FireFox says "Read error" -> "Connection reset by peer".
Any ideas?
Greetings,
Thomas.
-----Ursprüngliche Nachricht-----
Von: John Williams [mailto:jwilliams@xxxxxxxxxxxxxx]
Gesendet: Dienstag, 17. Juni 2008 01:59
An: microblaze-uclinux@xxxxxxxxxxxxxx
Betreff: 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/
___________________________
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/