Re: write_event called very infrequently during reproxy, causing
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Perlbal > Re: write_event called very infrequently during reproxy, causing




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

    Re: write_event called very infrequently during reproxy, causing  
Brad Fitzpatrick


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


 
01-23-07 12:11 AM

Quite likely.... good find!  I'll look into this...



On Mon, 22 Jan 2007, Eric Lambrecht wrote:

> We had an issue here where numerous downloads that perlbal was proxying
> out to our users (from mogile, *natch*) were getting cut off for some
> reason.
>
> After turning on debugging, it appears the 'alive_time' field in
> Perlbal::Socket wasn't being updated, and so the ClientProxy object was
> being closed by the Socket::_do_cleanup() idle socket closer.
>
> I see that 'alive_time' should be updated every time
> ClientProxy::event_write() is called, but when I turn on debugging I
> find that that method gets called very rarely while reproxying files. It
> happens so rarely that 'alive_time' doesn't get updated every 30
> seconds, _do_cleanup closes the socket, and our downloads get cut off.
>
> I hacked together a solution by writing a Perlbal::Socket::write()
> method that updates alive_time before calling Danga::Socket::write(),
> and that seems to solve things, but I'm not certain it is correct (does
> just writing to the socket imply it is still alive?).
>
> Anybody else ever experience this problem?
>
> Eric...
>
>






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:20 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