PHP 4.0 Bug #9388 Updated: odbc_pconnect and hanging database connections
| From: | php at gustl dot net | Date: | Thu, 22 Feb 2001 16:10:19 +0000 |
| Subject: | PHP 4.0 Bug #9388 Updated: odbc_pconnect and hanging database connections | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-47261@lists.php.net to get a copy of this message | ||
ID: 9388
User Update by: php@gustl.net
Status: Open
Bug Type: ODBC related
Description: odbc_pconnect and hanging database connections
When I open my Access Database with odbc_pconnect with NN4.7 on Apache 3.1.17, Netscape sends a
"GET HTTP/1.0" request and a "Connection: Keep-Alive", but Apache answers with
"Connection:close" (maybe he doesn't like keep alives with HTTP/1.0) and not with
"Connection:timeout=15, max=100".
With phpinfo I get "HTTP_CONNECTION=Keep-Alive", so php leaves a persistent connection
open, but apache doesnt reuse it.
The result is an "out of disk space" after several calls. My workaround by now is to limit
Apaches MaxRequestsPerChild, which results in a 3 second pause, when this limit is reached.
Gustav Graf
Previous Comments:
---------------------------------------------------------------------------
[2001-02-21 17:23:42] php@gustl.net
When I open my Access Database with odbc_pconnect with NN4.7 on Apache 3.1.17, Netscape sends a
"GET HTTP/1.1" request and a "Connection: Keep-Alive", but Apache answers with
"Connection:close" (maybe he doesn't like keep alives with HTTP/1.0) and not with
"Connection:timeout=15, max=100".
With phpinfo I get "HTTP_CONNECTION=Keep-Alive", so php leaves a persistent connection
open, but apache doesnt reuse it.
The result is an "out of disk space" after several calls. My workaround by now is to limit
Apaches MaxRequestsPerChild, which results in a 3 second pause, when this limit is reached.
Gustav Graf
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=9388