lighttpd will exist if a cgi is 'broken'
I have a cgi 'upload.cgi', used to upload files.
This is about the current svn version
If a user provided a file that is too big (100M, for example),
this cgi will not read the stdin. It will just print a simple
page and exist. This behavior is reasonable, right?
But this will cause the server, lighttpd, to exist. In mod_cgi.c:735,
the function returns 'HANDLER_ERROR', and then in server.c:996, 'SEGFAULT;',
the server is down.
I'm now doing a dirty hack in mod_cgi.c:735, 'return HANDLER_FINISHED'. It
works right now but I don't know whether there are other problems.
Also available in: Atom