httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nehal <nehalmis...@gmx.net>
Subject Re: [users@httpd] windows CGI - long delay
Date Thu, 18 Sep 2003 06:11:22 GMT
On Thu, 18 Sep 2003 08:01:36 +0200
"Robert Andersson" <robert@profundis.nu> wrote:

> Nehal wrote:
> > it says 'waiting for reply' in my browser
> > for about 40 seconds, then the output appears.
> 
> This sounds weird. Try running a script like this, with buffering turned
> off:
> 
>     ----------------------------------------------
>     #!/usr/bin/perl
> 
>     $| = 1;  # turn off buffering
> 
>     print "Content-type: text/html\n\n";
> 
>     print "1...........................<br>\n"; sleep(1);
>     print "2...........................<br>\n"; sleep(1);
>     print "3...........................<br>\n"; sleep(1);
>     print "4...........................<br>\n"; sleep(1);
>     print "5...........................<br>\n"; sleep(1);
> 
>     print "Done!";
>     exit;
>     ----------------------------------------------
> 
> If you don't see any output before 40 secs, it indicates that the execution
> of the script is delayed. If you do see output, then (for some reason) your
> browser doesn't get any "done signal", or the interpreter hangs and it times
> out. I'm sorry to say, I have no good solution for either case.

it doesnt show before 40 seconds... then it shows the whole thing 
at once... (no pauses between lines)...

> Also, take a look in your access log and see if the time logged corresponds
> to the time of the request or the time of the response.

it shows the time of request

Nehal

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message