Re: Serving Images via FastCGI

Chris Lightfoot <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <M/lssyskYDJs.HW1ISyRIdJYTAThAaghY/[email protected]>
On Tue, Jan 30, 2007 at 03:18:32PM -0500, Simon wrote:
> I have a PHP application which loads images via PHP script. Running this PHP
> script via PHP FastCGI creates a problem. The application loads hundreds of
> small images via this script on a single .php page This invokes hundreds of
> FastCGI processes just to serve a single user.  When images are served via 
> Apache, only 2 processes are used to serve all the images for a single HTTP
> keep-alive session in a series manner instead of parallel in case of FastCGI. Is
> there a way to implement same keep-alive mechanism in the case of a FastCGI
> app serving images during single HTTP keep-alive session?

does your PHP script send content-length headers? does it
implement the HTTP cacheing semantics? have you tried
replacing it with an implementation in a different
language? why are you serving images from a script anyway?

-- 
``Americans' greatest fear is that America will turn out
  to have been a phenomenon, not a civilization.'' (Shirley Hazzard)
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.