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

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




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

    write_event called very infrequently during reproxy, causing lots  
Eric Lambrecht


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


 
01-22-07 06:11 PM

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