perlbal and very slowly generated, dynamic content
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Perlbal > perlbal and very slowly generated, dynamic content




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    perlbal and very slowly generated, dynamic content  
Chad Austin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-07-07 06:11 AM

First:  as of earlier today, I'd never touched PERL or Perlbal, and I'm
definitely not an expert at HTTP either.  But I have a problem, and none
of the people I know who have written Perlbal plugins know what is
happening either.  So maybe one of you on this list can help!

I have a php page that generates output very slowly, but steadily.  It
can be simulated with something like:

<?php
set_time_limit(10 * 60); # 10 minutes
header('Content-type: text/plain');
for ($i = 0; $i < 60; $i++) {
echo "$i\n";
flush();
sleep(1);
}

Our backend web servers are running Apache, and Perlbal sits in front of
them.

When I run the page by hitting the apache instance directly, the page
runs to completion, so that's fine.  The problem is not in php or
Apache.  When I hit the page through Perlbal, it cuts off after 30
seconds, every time.

So, why would Perlbal close the connection after 30 seconds?  I noticed,
in ClientHTTPBase.pm, this line:

# FIXME: let this be configurable?
sub max_idle_time { 30; }

But after looking around a bit more, that should only matter if the
connection has been idle, which it definitely hasn't, as I can watch the
content trickle down to my web browser.  Also in ClientHTTPBase.pm, I
see "$self->{alive_time} = time;" inside of event_write, but I don't se
e
why that would stop being called.

Am I totally off base?  Do you know what could cause the connection to
close prematurely?

--
Chad Austin
http://imvu.com/technology






[ Post a follow-up to this message ]



    Re: perlbal and very slowly generated, dynamic content  
Brad Fitzpatrick


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-07-07 06:11 AM

Perhaps the other side of the connection is timing out... check both
ClientProxy and BackendHTTP ... one of them is dying due to not being
marked alive.

Probably a bug.  Let me know when you find it.

- Brad


On Tue, 6 Mar 2007, Chad Austin wrote:

> First:  as of earlier today, I'd never touched PERL or Perlbal, and I'm
> definitely not an expert at HTTP either.  But I have a problem, and none
> of the people I know who have written Perlbal plugins know what is
> happening either.  So maybe one of you on this list can help!
>
> I have a php page that generates output very slowly, but steadily.  It
> can be simulated with something like:
>
> <?php
> set_time_limit(10 * 60); # 10 minutes
> header('Content-type: text/plain');
> for ($i = 0; $i < 60; $i++) {
>      echo "$i\n";
>      flush();
>      sleep(1);
> }
>
> Our backend web servers are running Apache, and Perlbal sits in front of
> them.
>
> When I run the page by hitting the apache instance directly, the page
> runs to completion, so that's fine.  The problem is not in php or
> Apache.  When I hit the page through Perlbal, it cuts off after 30
> seconds, every time.
>
> So, why would Perlbal close the connection after 30 seconds?  I noticed,
> in ClientHTTPBase.pm, this line:
>
> # FIXME: let this be configurable?
> sub max_idle_time { 30; }
>
> But after looking around a bit more, that should only matter if the
> connection has been idle, which it definitely hasn't, as I can watch the
> content trickle down to my web browser.  Also in ClientHTTPBase.pm, I
> see "$self->{alive_time} = time;" inside of event_write, but I don't 
see
> why that would stop being called.
>
> Am I totally off base?  Do you know what could cause the connection to
> close prematurely?
>
> --
> Chad Austin
> http://imvu.com/technology
>
>






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:17 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register