Forum Discussion
Altera_Forum
Honored Contributor
16 years agoCGI stack size overflow ?
Hi all, I was wondering how to increase the stack size of a CGI program because I observed than when I tried to read more than a hundred I2C registers and print their values in a HTML page, the...
Altera_Forum
Honored Contributor
16 years agoFrom the BOA server point of view, what happened if the CGI stack overflows ??
I found this article : http://articles.techrepublic.com.com/5100-10878_11-1044694.html -------------------------------------------------------------------------- 4. The program needs to return a valid response Any CGI program that runs must return a valid response to the browser. However, if the program encounters a problem while running and dies, it could output an error message. If you were running the program in a normal window on NT or UNIX, you would simply see the error message. But in the Web world, the program needs to hand its response back to the Web server, which then packages it to send back to the browser. If the program outputs an error message, the Web server does not get the response it expects and instead returns a general error (501 error, for example) back to the browser, saying there was a problem running the program. -------------------------------------------------------------------------- If I wait a certain amount of time after the crash (certainly after a timeout defined by default), the BOA prints the 501 error but responds and does not need to be restarted !!! That's why I thought about a stack size overflow....