lighttpd forum lighty > Streaming HTML file

Posted by Niklas Bivald
on 18.07.2008 14:04
Hi,
I have a problem. I am running a youth chat with a webbased IRC client 
(running a cgiirc installation). Basically it works like this:

 - When a user connects a cgi script starts and continues to stream to 
the client
 - It connects to the irc server, and serves streaming html/js to the 
client
   (Incomming messages, etc.)

This is really not a good solution since every user is one continuous 
thread which hogs memory and CPU and... well it's just bad. I am in the 
process of re-rewriting the back-end to move from cgi to a flash but 
it's taking some time. Until that is finished I am looking for an 
alternate httpd from Apache.

Would this be possible with lighttpd? Basically I need lighthttpd to 
never abort streaming html processes. While far from a beautiful 
solution, it might buy me some time before I make the new client. My 
problem is now that lighttpd aborts the thread after ~5 min (even if I 
increase server.max-write-idle)

Am I missing something?

Regards,
Niklas