]> err.no Git - varnish/commitdiff
Avoid a clock_gettime() call
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 11 Sep 2006 09:05:39 +0000 (09:05 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 11 Sep 2006 09:05:39 +0000 (09:05 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@955 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_acceptor.c

index 7504d52e976f5747f4deca082af20e08d16f57c8..293fdbf6a2fc5c5116922bc89006206f539b0ceb 100644 (file)
@@ -160,7 +160,7 @@ vca_return_session(struct sess *sp)
        AZ(sp->vcl);
        if (sp->fd >= 0) {
                VSL(SLT_SessionReuse, sp->fd, "%s %s", sp->addr, sp->port);
-               (void)clock_gettime(CLOCK_REALTIME, &sp->t_open);
+               sp->t_open = sp->t_end;
                if (http_RecvPrepAgain(sp->http)) {
                        vca_handover(sp, 0);
                        return;