return_to_base and http_response_sent

Eamon Daly edaly at nextwavemedia.com
Fri Jan 18 02:03:28 UTC 2008


Is return_to_base supposed to be fired at the end of every
web request? I'm rolling my own logger and discovered that
return_to_base isn't fired at all if keep alives are turned
off:

(in Perlbal::ClientHTTPBase, line 163)

    # close if we have no response headers or they say to close
    $self->close("no_keep_alive");
    return 0;

Is that expected behavior? If so, might I suggest an
"end_web_request" hook or similar? I'm currently overriding
http_response_sent and adding my own, but it's not exactly
pretty.

____________________________________________________________
Eamon Daly





More information about the perlbal mailing list