Re: PHP and Connection: Close

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris wrote:
If you're doing an exit() or die() or the script stops executing
that's like you closing the connection - so apache is going to
close the connection (as it should).

The connection Jon is talking about is the TCP connection, just in case that's not clear. I'm not sure what connection you're talking about. He has already explained persistent connections pretty well, I think, and I encourage you to try for yourself using his test (I corrected the HTTP to be compliant):

$ telnet <domain> 80
GET / HTTP/1.1
Host: <domain>

Rinse. Repeat.

This requires that the server supports persistent connections, of course, but his does. (It also requires that you "beat" the keep-alive timeout, so you might want to use copy/paste.)

Chris

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux