|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-05-20 10:35 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 03:00:01 2025 UTC |
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.