Commit 96f9b0c8 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Merged revisions 1913-1916,1920-1928 via svnmerge from

svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache

........
  r1913 | phk | 2007-08-21 11:23:31 +0200 (Tue, 21 Aug 2007) | 9 lines
  
  Make sure wrk->used is always set when we park on an object, we might be
  unlucky multiple times in which case the responsibility falls back to
  cnt_lookup().
  
  Fixes 144.
........
  r1915 | des | 2007-08-21 17:36:59 +0200 (Tue, 21 Aug 2007) | 2 lines
  
  Try to make this comment a little more visible.
........
  r1916 | des | 2007-08-21 17:37:17 +0200 (Tue, 21 Aug 2007) | 2 lines
  
  Synchronize with bin/varnishd/mgt_vcc.c.
........
  r1925 | des | 2007-08-29 17:21:59 +0200 (Wed, 29 Aug 2007) | 2 lines
  
  Improve readability.
........
  r1926 | des | 2007-08-29 17:23:52 +0200 (Wed, 29 Aug 2007) | 1 line
  
  Tabify
........
  r1927 | des | 2007-08-29 17:24:42 +0200 (Wed, 29 Aug 2007) | 2 lines
  
  Add missing files.
........
  r1928 | des | 2007-08-29 17:25:58 +0200 (Wed, 29 Aug 2007) | 2 lines
  
  Readability
........


git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1929 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 92fd4d76
...@@ -488,7 +488,12 @@ cnt_lookup(struct sess *sp) ...@@ -488,7 +488,12 @@ cnt_lookup(struct sess *sp)
*/ */
WSL(sp->wrk, SLT_Debug, sp->fd, WSL(sp->wrk, SLT_Debug, sp->fd,
"on waiting list on obj %u", sp->obj->xid); "on waiting list on obj %u", sp->obj->xid);
assert(!isnan(sp->wrk->used)); /*
* There is a non-zero risk that we come here more than once
* before we get through, in that case cnt_recv must be set
*/
if (isnan(sp->wrk->used))
sp->wrk->used = TIM_real();
SES_Charge(sp); SES_Charge(sp);
return (1); return (1);
} }
......
...@@ -67,7 +67,9 @@ static TAILQ_HEAD(, vclprog) vclhead = TAILQ_HEAD_INITIALIZER(vclhead); ...@@ -67,7 +67,9 @@ static TAILQ_HEAD(, vclprog) vclhead = TAILQ_HEAD_INITIALIZER(vclhead);
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
/* keep this in synch with man/vcl.7 */ /*
* Keep this in synch with man/vcl.7 and etc/default.vcl!
*/
static const char *default_vcl = static const char *default_vcl =
"sub vcl_recv {\n" "sub vcl_recv {\n"
" if (req.request != \"GET\" && req.request != \"HEAD\") {\n" " if (req.request != \"GET\" && req.request != \"HEAD\") {\n"
......
# $Id$ # $Id$
EXTRA_DIST = \ EXTRA_DIST = \
changelog compat control copyright dirs docs lintian-override \ README.Debian \
README.Debian rules TODO varnish.default varnish.examples \ TODO \
varnish.init varnish.logrotate varnish.postrm \ changelog \
varnish.varnishlog.init compat \
control \
copyright \
dirs \
docs \
libvarnish-dev.dirs \
libvarnish-dev.install \
libvarnish.dirs \
libvarnish.install \
lintian-override \
rules \
varnish.default \
varnish.dirs \
varnish.examples \
varnish.init \
varnish.install \
varnish.logrotate \
varnish.manpages \
varnish.postinst \
varnish.postrm \
varnish.varnishlog.init \
watch
...@@ -47,6 +47,8 @@ backend default { ...@@ -47,6 +47,8 @@ backend default {
## Called when entering an object into the cache ## Called when entering an object into the cache
# #
#sub vcl_hash { #sub vcl_hash {
# set req.hash += req.url;
# set req.hash += req.http.host;
# hash; # hash;
#} #}
# #
......
...@@ -510,6 +510,8 @@ sub vcl_pass { ...@@ -510,6 +510,8 @@ sub vcl_pass {
} }
sub vcl_hash { sub vcl_hash {
set req.hash += req.url;
set req.hash += req.http.host;
hash; hash;
} }
......
# $Id$ # $Id$
EXTRA_DIST = \ EXTRA_DIST = \
README.redhat TODO varnish.initrc varnishlog.initrc \ README.redhat \
varnish.logrotate varnish.spec varnish.sysconfig TODO \
varnish.initrc \
varnish.logrotate \
varnish.spec \
varnish.sysconfig \
varnishlog.initrc
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment