4 ms·
IIRC from when I wrote a basic http server, the problem with CGI is that you have to store the output of the script in memory in order to insert the Content Len
by cassepipe 4y ago
IIRC from when I wrote a basic http server, the problem with CGI is that you
have to store the output of the script in memory in order to insert the Content
Length field value in the http respondse header. It seems like a rather
innefficient operation, especially if repeated a million times on a server.
Else you could just read from the your CGI process in a non
blocking manner, writing back to the socket whenever output
is available. Am I correct ?