Show
Ignore:
Timestamp:
12/05/06 10:26:21 (3 years ago)
Author:
bradfitz
Message:

-- fix a crash as reported on mailing lists, with backends not

releasing references to clientproxies when coming through
service selectors, and backends then timing out, crashing
the server.

Files:
1 modified

Legend:

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

    r602 r612  
    445445    print "ClientProxy::http_response_sent -- resetting state\n" if Perlbal::DEBUG >= 3; 
    446446 
     447    if (my $be = $self->{backend}) { 
     448        $self->{backend} = undef; 
     449        $be->forget_client; 
     450    } 
     451 
    447452    # if we get here we're being persistent, reset our state 
    448453    $self->{backend_requested} = 0; 
    449     $self->{backend} = undef; 
    450454    $self->{high_priority} = 0; 
    451455    $self->{reproxy_uris} = undef;