r955 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Mon Sep 11 11:05:39 CEST 2006
Author: phk
Date: 2006-09-11 11:05:39 +0200 (Mon, 11 Sep 2006)
New Revision: 955
Modified:
trunk/varnish-cache/bin/varnishd/cache_acceptor.c
Log:
Avoid a clock_gettime() call
Modified: trunk/varnish-cache/bin/varnishd/cache_acceptor.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_acceptor.c 2006-09-11 09:00:44 UTC (rev 954)
+++ trunk/varnish-cache/bin/varnishd/cache_acceptor.c 2006-09-11 09:05:39 UTC (rev 955)
@@ -160,7 +160,7 @@
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;
More information about the varnish-commit
mailing list