How is a persistent database connection handled then? e.g. in the mysql
module?
Apache 1.x pre-creates a number of server processes. Each process
handles a certain number of requests (one at a time), and then
dies. It is then replaced with an another server process. The number
of processes can vary depending on the load and the configuration.
Database connections (and other resources) are persistent on the
per-server-process level. What this means that an open connection
in one server process cannot be reused from within another
server process.
When using PHP with IIS, on the other hand, you only have one
process and only one set of persistent connections.
Since creating a 100% thread safe PHP (PHP meaning the core engine
plus the libraries) is practically impossible, I would say that
PHP will go the FastCGI route, even on Windows.
Bye,
Ivan
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php