Re: [PHP] Apache/IE hangs with PHP

2004-02-26 Thread Evan Nemerson
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
[EMAIL PROTECTED]
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

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



Re: [PHP] Apache/IE hangs with PHP

2004-02-26 Thread Vincent Bouret
I just made the same test with IIS/PHP on Windows 2000 system and the
problem described previously doesn't occur. Looks like an Apache problem
then.

I've read that Internet Explorer is using only two connection / server.
Maybe it has something to do with that.

Thanks
Vincent

Evan Nemerson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 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
 [EMAIL PROTECTED]
 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

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



Re: [PHP] Apache/IE hangs with PHP

2004-02-26 Thread Erwin Kerk
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
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.
| Thanks for your help,
| Vincent
|
I suspect it has something to do with session handling. Check your ini
settings for a session_autostart or something.
Normal behavior for jultiple windows (or frames) and sessions, is that
they wait for each other to close (not destrow, close) the session.
See http://www.php.net/manual/en/function.session-write-close.php for
more information.
Godd luck with this one.

Erwin Kerk
Web Developer
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFAPfIW4rV3/oG+84URAizzAJ4+OpLSfMnA0J4tKl0NSdDprfvrtQCgvcc2
F2l+E0q/e0HpOwW5ecBAxUk=
=sPMG
-END PGP SIGNATURE-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php