2007-09-04
2007-09-04 13:25:07 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
354cdd5325128d28d1aedc0d92200cbe350f5165
(6 lines)
(+4/-2)
[
Show
| Annotate
]
Branch: 5.2
Improved accuracy of the cache_lookup timer.
Rev: server/protocols/http.pike:1.529
2:
// Modified by Francesco Chemolli to add throttling capabilities.
// Copyright © 1996 - 2004, Roxen IS.
- constant cvs_version = "$Id: http.pike,v 1.528 2007/09/04 12:59:36 grubba Exp $";
+ constant cvs_version = "$Id: http.pike,v 1.529 2007/09/04 13:25:07 grubba Exp $";
// #define REQUEST_DEBUG
#define MAGIC_ERROR
2681: Inside #if defined(RAM_CACHE)
MY_TRACE_LEAVE ("Using entry from ram cache");
cache_status["protcache"] = 1;
- TIMER_END(cache_lookup);
+
if (!refresh) {
-
+ TIMER_END(cache_lookup);
low_send_result(full_headers, d, sizeof(d));
return;
}
2705: Inside #if defined(RAM_CACHE)
id->throttle = throttle + ([]);
id->throttler = throttler;
conf->connection_add( id, connection_stats );
+ TIMER_END(cache_lookup);
id->low_send_result(full_headers, d, sizeof(d));
my_fd = 0;