[cgiapp] How to lazy-load runmodes

gvim gvimrc at gmail.com
Wed May 25 20:42:54 EDT 2011


On 25/05/2011 07:37, Ron Savage wrote:
>
> I don't run Apache anymore. I run nginx and proxy cgi-bin/ to
> mini-httpd. A 'weird error' won't be in those programs, it'll be in your
> code, no matter how hard you find that to believe :-))).
>
> It's a classic symptom of using a global variable(s), although (of
> course) it could be something else.
>

It was a global variable :-). 'Trouble is it didn't show up when using Apache/CGI. Only when deployed with nginx + Starman. That's why I thought it was a Starman issue. I thought these global variable issues were only with mod_perl but they seem to apply to Starman though I couldn't find any guidelines about avoiding such issues with Starman. OK, I know you shouldn't use globals, and there was only 1 in this module, but if it's going to bork your app this badly it should be documented a la mod_perl. If globals are simply not an option rather than sloppy style it should be clearly stated.

gvim


More information about the cgiapp mailing list