setting request_time (prot. handler)

[prev] [thread] [next] [Date index for 2005/04/05]

From: Dintelmann, Peter
Subject: setting request_time (prot. handler)
Date: 11:53 on 05 Apr 2005
The log phase can be invoked in a protocol handler using the
run_log_transaction() method from Apache::HookRun.

    use Apache::Connection;
    use Apache::Const -compile => qw(OK);
    use Apache::RequestRec;
    use Apache::RequestUtil;
    use Apache::HookRun;

    sub handler
    {   my $c = shift;
        my $r = Apache::RequestRec->new($c);

        # IO loop goes here

        # finally log the request
        $r->run_log_transaction();

        return Apache::OK;
    }

Unfortunately the request_time of the newly created request
seems to be undefined.

Is there a way to manually set the request_time (or get it
automagically set to the time of the creation of $r)? 

setting request_time (prot. handler)
Dintelmann, Peter 11:53 on 05 Apr 2005

Re: setting request_time (prot. handler)
Stas Bekman 15:57 on 05 Apr 2005

Generated at 14:43 on 11 Apr 2005 by mariachi v0.52