]> granicus.if.org Git - php/commit
Modified php_mysql_do_connect() as suggested by Nick Gaugler - using
authorZak Greant <zak@php.net>
Tue, 12 Nov 2002 01:41:16 +0000 (01:41 +0000)
committerZak Greant <zak@php.net>
Tue, 12 Nov 2002 01:41:16 +0000 (01:41 +0000)
commitc29f1aa468f661bc34174a7726abdf785fff36e4
tree531ae7230443f4956ae19f430235cfd7202ca4b6
parente7f3ad9d880cd0b22b251fde797ef8d576c1474e
Modified php_mysql_do_connect() as suggested by Nick Gaugler - using
mysql_ping() as a more efficient alternative to using mysql_stat() to
check if the server is alive and then calling mysql_(real_)?connect() to
reconnect.

Simple tests of opening pconnects indicate that only about 10k of data per
ping needs to be returned to the client per connection check, rather than
about 110k per status check.
ext/mysql/php_mysql.c