php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14988 mysql_pconnect() and POST takes a lot of time
Submitted: 2002-01-10 21:43 UTC Modified: 2002-02-19 16:30 UTC
From: daniel dot burckhardt at sur-gmbh dot ch Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.1.1 OS: w2k
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: daniel dot burckhardt at sur-gmbh dot ch
New email:
PHP Version: OS:

 

 [2002-01-10 21:43 UTC] daniel dot burckhardt at sur-gmbh dot ch
when using php 4.1.0 and 4.1.1 on win2k (both php4isapi.dll and php4apache.dll)
the function-call
  mysql_pconnect("localhost", "root", "")
takes about 5 seconds when the page is a called with a post request (<form method="post" action="pagename.php">) while there is no noticable delay when calling it with a GET-request (by entering the url pagename.php directly into the browser or setting method="get" in the form-tag)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-11 05:26 UTC] daniel dot burckhardt at sur-gmbh dot ch
did some further checks - i have the same problem with the cgi-version and using older version (4.0.4) and when using mysql_connect instead of mysql_pconnect.

my mysql-version is 3.23.46-nt
 [2002-02-19 07:30 UTC] daniel dot burckhardt at sur-gmbh dot ch
seems to be caused by slow DNS-lookups and some problems in netscape 4.x:

http://www.phpbuilder.com/forum/read.php3?num=4&id=5321&thread=2583


 [2002-02-19 16:30 UTC] cmk@php.net
Since the url given gives hints on how to solve this problem I'm closing this one.

Also if you can use MySQL-max and named pipes since they are faster than normal sockets. Check the MySQL documentation for more information.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 11:01:29 2025 UTC