#33071 [Opn->Bgs]: PHP5/IIS Only Opens One Database Connection At A Time
| From: | sniper@php.net | Date: | Fri, 20 May 2005 08:35:31 +0000 |
| Subject: | #33071 [Opn->Bgs]: PHP5/IIS Only Opens One Database Connection At A Time | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-79239@lists.php.net to get a copy of this message | ||
ID: 33071
Updated by: sniper@php.net
Reported By: corey at eyewantmedia dot com
-Status: Open
+Status: Bogus
Bug Type: IIS related
Operating System: Windows 2003
PHP Version: 5.0.4
New Comment:
Report this to the PEAR people: http://pear.php.net/bugs/
Previous Comments:
------------------------------------------------------------------------
[2005-05-19 22:42:53] corey at eyewantmedia dot com
Description:
------------
I am running php 5.0.4 with IIS 6 and IIS 5.1 (as a test). When I
submit multiple requests, php only opens one database connection at a
time (to a database server on the same network), so multiple requests
are being queued and it takes them longer and longer to process. This
happens both when php runs as cig and isapi, and even fastcgi and with
winenabler. However, if run through cli, this problem does not happen.
Any ideas?
Reproduce code:
---------------
<?php
require_once('DB.php'); //pear db class
$db = DB::connect($dsn);
//do sttuff
$db->disconnect();
//request this page several times to see what I mean
?>
Expected result:
----------------
When it is requested many times simultaneously , I expect many database
connections
Actual result:
--------------
php waits for the last database connection to close before it even
attempts to connect a second time, queueing up processes like mad.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33071&edit=1