tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CGI scripts

On Tue, 18 Oct 2011 04:00:14 -0400
Matthew Mondor <> wrote:

> xml/html in strings mess...  Decisions have to be taken on how to deal
> with the scripts (load them all at application startup, reload/update
> at SIGHUP; or check if a file was modified since the last load, in
> which case it's reloaded; should dynamic handlers be files (i.e. ap-php
> style) or functions in an already loaded program, with htdocs only
> containing static files and a table for resource/function mapping, etc).

Oh, and decision also has to be taken about if a running image should
serve more than one request (traditional CGIs used a freshly forked
process per request; reusing the image for a number of requests before
recycling it is much more efficient, but user code must be more careful
not to corrupt the image).

Home | Main Index | Thread Index | Old Index