Hi Mohammad!

>  > After applying the patch, there is still a problem: I could never
>  > get 'ab -c 1 -n 1000' completed successfully because exactly in
>  > 501th request, the php interpreter always crashed (probably out of
>  > our scope, ie. PHP/libfcgi bug)
>
>   Yeah, I got the same result yesterday. I will try to figure out what
>   is happening with PHP interpreter.

  I have committed some changes that actually implement a little piece
  we were missing here:

     http://www.0x50.org/bugs/changeset/142

  Basically it allows to define the environment variables of the
  FastCGI we are launching. So with a configuration like this (notice
  the PHP_FCGI_MAX_REQUESTS variable):

======
Extension php {
  Handler fastcgi {
    Server localhost:8002 {
      Env PHP_FCGI_MAX_REQUESTS "1010"
      Interpreter "/usr/bin/php4-cgi -b 8002"
    }
  }
}
======

  I have got this ab output:

======
Concurrency Level:      1
Time taken for tests:   1.452398 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      186000 bytes
HTML transferred:       24000 bytes
Requests per second:    688.52 [#/sec] (mean)
======

  now, the target is to make Cherokee relaunch and connect gracefully
  with the FastCGI server when it exits (it wasn't a segment fault or
  anything, it is the default PHP behaviour).

  Ah, and I also added support to add custom environment variables
  inside the FastCGI request in the previous commit. :)

--
Greetings, alo.
http://www.alobbs.com
_______________________________________________
Cherokee mailing list
Cherokee@lists.alobbs.com
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to