Re: PHP and Connection: Close

From: Date: Wed, 22 Mar 2006 00:05:04 +0000
Subject: Re: PHP and Connection: Close
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-232377@lists.php.net to get a copy of this message
Jon Anderson wrote:
It seems to work okay, except that at the TCP level, the client keeps initiating new connections for every soap request rather than using a single connection for multiple requests. One possible reason for this is that the server sends a "Connection: close" HTTP header after the first request.
That's definitely the reason. The server includes such a header when it intends to close the TCP connection after sending the response.
I've been trying to find a way to control this from PHP (or Apache) - anyone know a way around that kind of thing?
Check the KeepAlive configuration directive in httpd.conf. Hope that helps. Chris

« previous php.general (#232377) next »