Changeset 816

Show
Ignore:
Timestamp:
02/11/09 21:36:03 (10 months ago)
Author:
hachi
Message:

need to call end_proxy_request during keepalives

Location:
trunk/lib/Perlbal
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/Perlbal/ClientHTTPBase.pm

    r813 r816  
    143143} 
    144144 
     145# Called when this client is entering a persist_wait state, but before we are returned to base. 
     146sub persist_wait { 
     147     
     148} 
     149 
    145150# called when we've finished writing everything to a client and we need 
    146151# to reset our state for another request.  returns 1 to mean that we should 
     
    192197    $self->{post_sendfile_cb} = undef; 
    193198    $self->state('persist_wait'); 
     199 
     200    $self->persist_wait; 
    194201 
    195202    if (my $selector_svc = $self->{selector_svc}) { 
  • trunk/lib/Perlbal/ClientProxy.pm

    r815 r816  
    444444} 
    445445 
     446# Called when this client is entering a persist_wait state, but before we are returned to base. 
     447sub persist_wait { 
     448    my Perlbal::ClientProxy $self = $_[0]; 
     449    # We're in keepalive, and just completed a proxy request 
     450    $self->{service}->run_hooks('end_proxy_request', $self); 
     451} 
     452 
    446453# called when we've sent a response to a user fully and we need to reset state 
    447454sub http_response_sent {