RE: PHP interference in frames

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

 



I tried quite a few tests.  Each time, the frameset logged immediately, then
4-5 seconds later came the rest.  Examples:

192.168.1.1 - - [23/Dec/2005:07:09:18 -0500] "GET /vsg/test.php HTTP/1.1"
200 167
192.168.1.1 - - [23/Dec/2005:07:09:23 -0500] "GET /vsg/test1.php HTTP/1.1"
200 0
192.168.1.1 - - [23/Dec/2005:07:09:23 -0500] "GET /vsg/test3.php HTTP/1.1"
200 36
192.168.1.1 - - [23/Dec/2005:07:09:23 -0500] "GET /vsg/test2.php HTTP/1.1"
200 0

192.168.1.1 - - [23/Dec/2005:07:09:30 -0500] "GET /vsg/test.php HTTP/1.1"
200 167
192.168.1.1 - - [23/Dec/2005:07:09:34 -0500] "GET /vsg/test1.php HTTP/1.1"
200 0
192.168.1.1 - - [23/Dec/2005:07:09:35 -0500] "GET /vsg/test3.php HTTP/1.1"
200 36
192.168.1.1 - - [23/Dec/2005:07:09:35 -0500] "GET /vsg/test2.php HTTP/1.1"
200 0

The log makes it look like *all* the frames are held back.  Seems like the
request is logged when it completes, so the logging process can't show us
whether the client held back frame 3 or frame 3 was put on hold by the
server.

-----Original Message-----
From: Jochem Maas [mailto:jochem@xxxxxxxxxxxxx] 
Sent: Friday, December 23, 2005 6:21 AM
To: PHP Superman
Cc: Ron Rudman; php-general@xxxxxxxxxxxxx
Subject: Re:  PHP interference in frames

PHP Superman wrote:
> I'm taking a wild guess here, maybe the browser insists on waiting for 
> some content but it's maximum content wait time is 5 seconds, the 
> browser could detect the connection to the server is still open and 
> wait for 5 seconds or another time

to get an idea of what the browser is doing (how its waiting etc) tail the
webserver log to see how/when the requests come in - should give you a clue
as to what is happening:

either the server puts them on hold or the browser is holding back sending
the request.

> 
> On 12/22/05, Ron Rudman <ron@xxxxxxxxxxxxx> wrote:
> 
>>I've got this down to a bare bones test but am still stumped.  Can 
>>anyone explain why I get the behavior I do?
>>
>>I have a frameset with 3 frames:
>><html>
>><head><title>testing</title></head>
>><frameset rows='100,100,*'>
>>    <frame src='test1.php'></frame>
>>    <frame src='test2.php'></frame>
>>    <frame src='test3.php'></frame>
>></frameset>
>></html>
>>
>>test1.php and test2.php are both simply:    <? sleep(5); ?>
>>test3.php is simply:   <? echo "This is some content"; ?>
>>
>>When I invoke the main frameset, the output from test3.php takes 5 
>>seconds to appear.
>>If I comment out either one of the sleep calls, the output from 
>>test3.phpis immediate, which is what I expected in the first place.
>>
>>I have session.auto_start = 0 in php.ini, so this has nothing to do 
>>with sessions.
>>I am running php 5.0.5.
>>I get the same results with both apache 2/mod_php and 
>>lighttpd/fastcgi, the latter with 40 php processes running.
>>
>>I thought that each frame in a page was executed independently and 
>>asynchronously, yet frame4.php insists on "waiting" for one of the 
>>other frames to complete  (if the sleeps are 5 and 10, frame3 produces 
>>its output after 5 seconds).
>>
>>What am I missing here?
>>
>>--
>>PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: 
>>http://www.php.net/unsub.php
>>
>>
> 
> 
> 
> --
> Hi Everyone, I am running PHP 5 on Windosws XP SP2 with MySQL5, Bye Now!
> 

-- 
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