Re: Apache/IE hangs with PHP
| From: | Evan Nemerson | Date: | Thu, 26 Feb 2004 08:43:30 +0000 |
| Subject: | Re: Apache/IE hangs with PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178918@lists.php.net to get a copy of this message | ||
It's only IE? Perhaps IE keeps connections in a global structure and tries to
use already established connections, regardless of which window you're using?
It's just a guess, but it seems logical- it would cut down on TCP handshake
waste, but one window could effectively DoS another. I wonder what would
happen on multi-user installations of windows...? Anyone got a box the could
test on?
On Wednesday 25 February 2004 06:30 pm, Vincent Bouret wrote:
> Hi,
>
> I have this strange problem. I have Apache 1.3.28 on Windows XP Home SP1
> with PHP 4.3.4 as a module:
>
> httpd.conf
> LoadModule php4_module c:/php/sapi/php4apache.dll
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .phtml
>
> //After a list of modules
> AddModule mod_php4.c
>
> Let's say I have test.php that does nothing more than sleeping for 30
> seconds:
> <?php
> sleep(30);
> ?>
> <html>
> content
> </html>
>
> When I open up this script in IE with http://localhost/test.php
> and within
> the 30 seconds sleep I try to load another file with .php extension
> (regardless of whether there are some php statements or not in the file) on
> the same localhost server with another IE window, IE or Apache hangs until
> the first script is done and then gives output of the second script.
>
> The thing is that when I connect to Apache manually with Telnet during the
> same 30 seconds and I request a PHP script, I get the answer immediately.
>
> I've tried almost everything, Apache 2.0, PHP5, disabling Keep-Alive in
> Apache, nothing works.
>
> What am I doing wrong? Is that a natural behaviour.
>
> Thanks for your help,
> Vincent
--
Evan Nemerson
evan@coeus-group.com
http://coeusgroup.com/en
--
"...the whole idea of revenge and punishment is a childish daydream. Properly
speaking, there is no such thing as revenge. Revenge is an act which you want
to commit when you are powerless and because you are powerless: as soon as
the sense of impotence is removed, the desire evaporates also. "
-George Orwell