Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
08fad225
Commit
08fad225
authored
Jun 25, 2013
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add bereq.retries variable
parent
1f308d3b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
cache.h
bin/varnishd/cache/cache.h
+1
-0
cache_vrt_var.c
bin/varnishd/cache/cache_vrt_var.c
+9
-0
generate.py
lib/libvcl/generate.py
+5
-0
No files found.
bin/varnishd/cache/cache.h
View file @
08fad225
...
...
@@ -507,6 +507,7 @@ struct busyobj {
* All fields from refcount and down are zeroed when the busyobj
* is recycled.
*/
int
retries
;
unsigned
refcount
;
double
t_fetch
;
uint16_t
err_code
;
...
...
bin/varnishd/cache/cache_vrt_var.c
View file @
08fad225
...
...
@@ -383,6 +383,15 @@ VRT_r_req_restarts(const struct vrt_ctx *ctx)
return
(
ctx
->
req
->
restarts
);
}
long
VRT_r_bereq_retries
(
const
struct
vrt_ctx
*
ctx
)
{
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
CHECK_OBJ_NOTNULL
(
ctx
->
bo
,
BUSYOBJ_MAGIC
);
return
(
ctx
->
bo
->
retries
);
}
/*--------------------------------------------------------------------
* NB: TTL is relative to when object was created, whereas grace and
* keep are relative to ttl.
...
...
lib/libvcl/generate.py
View file @
08fad225
...
...
@@ -217,6 +217,11 @@ sp_variables = (
(
'recv'
,),
(
'recv'
,),
),
(
'bereq.retries'
,
'INT'
,
(
'backend'
,),
(
),
),
(
'bereq.backend'
,
'BACKEND'
,
(
'backend'
,
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment