php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33071 PHP5/IIS Only Opens One Database Connection At A Time
Submitted: 2005-05-19 22:42 UTC Modified: 2005-05-20 10:35 UTC
From: corey at eyewantmedia dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 5.0.4 OS: Windows 2003
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: corey at eyewantmedia dot com
New email:
PHP Version: OS:

 

 [2005-05-19 22:42 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-20 10:35 UTC] sniper@php.net
Report this to the PEAR people: http://pear.php.net/bugs/
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 10:01:31 2024 UTC