[fpc-pascal] Apache processing cgi requests

Graeme Geldenhuys graemeg.lists at gmail.com
Wed Jul 26 10:30:09 CEST 2006

For all those Apache and CGI gurus...

[This might be off-topic]

I have written a CGI app for my client that decrypts a Macromedia
Flash files (*.swf) to a set path and name ("/flash/movie.swf"), I
then generate a html file to view that file, and the client (web
browser) gets served.  The average *.swf file size is around 100Kb.

This CGI app might serve around 30-40 people simultaneously at peak
times.  In our testing, I would have thought that even though all
30-40 people are viewing different *.swf files, some might get served
the wrong file (due to the decrypted file always having a constant
name).  Our testing proved otherwise, we always received the correct
swf movie?

This brings me to my question.  How does Apache handle CGI requests?
Does it queue them and serve them  (including all resources: images,
swf files, etc) one at a time or process them all at the same time?

Note: For the release version, I changed the decrypted file to use a
GUID Session ID in the output name - just to be sure there is no
potential problems!

I am using Apache 2 with the MPM worker on a Linux box. The worker MPM
provides a threaded implementation for Apache2.


There's no place like

More information about the fpc-pascal mailing list