[master] 4118ad5 Move the backend timeout vars to busyobj
Poul-Henning Kamp
phk at varnish-cache.org
Mon Apr 22 15:36:05 CEST 2013
commit 4118ad53f99a8400f1a6e4216b145d6c233f2184
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Apr 22 13:35:54 2013 +0000
Move the backend timeout vars to busyobj
diff --git a/bin/varnishd/cache/cache_vrt_var.c b/bin/varnishd/cache/cache_vrt_var.c
index 3b5bcc7..307ae1a 100644
--- a/bin/varnishd/cache/cache_vrt_var.c
+++ b/bin/varnishd/cache/cache_vrt_var.c
@@ -239,21 +239,19 @@ VRT_l_client_identity(struct req *req, const char *str, ...)
#define BEREQ_TIMEOUT(which) \
void \
-VRT_l_bereq_##which(const struct req *req, double num) \
+VRT_l_bereq_##which(struct busyobj *bo, double num) \
{ \
\
- CHECK_OBJ_NOTNULL(req, REQ_MAGIC); \
- CHECK_OBJ_NOTNULL(req->busyobj, BUSYOBJ_MAGIC); \
- req->busyobj->which = (num > 0.0 ? num : 0.0); \
+ CHECK_OBJ_NOTNULL(bo, BUSYOBJ_MAGIC); \
+ bo->which = (num > 0.0 ? num : 0.0); \
} \
\
double \
-VRT_r_bereq_##which(const struct req *req) \
+VRT_r_bereq_##which(const struct busyobj *bo) \
{ \
\
- CHECK_OBJ_NOTNULL(req, REQ_MAGIC); \
- CHECK_OBJ_NOTNULL(req->busyobj, BUSYOBJ_MAGIC); \
- return(req->busyobj->which); \
+ CHECK_OBJ_NOTNULL(bo, BUSYOBJ_MAGIC); \
+ return (bo->which); \
}
BEREQ_TIMEOUT(connect_timeout)
diff --git a/lib/libvcl/generate.py b/lib/libvcl/generate.py
index 67fe7af..e6d78fe 100755
--- a/lib/libvcl/generate.py
+++ b/lib/libvcl/generate.py
@@ -271,19 +271,19 @@ sp_variables = (
'DURATION',
( 'pipe', 'backend_fetch', 'pass', 'miss',),
( 'pipe', 'backend_fetch', 'pass', 'miss',),
- 'cR'
+ 'B'
),
('bereq.first_byte_timeout',
'DURATION',
( 'backend_fetch', 'pass', 'miss',),
( 'backend_fetch', 'pass', 'miss',),
- 'cR'
+ 'B'
),
('bereq.between_bytes_timeout',
'DURATION',
( 'backend_fetch', 'pass', 'miss',),
( 'backend_fetch', 'pass', 'miss',),
- 'cR'
+ 'B'
),
('beresp.proto',
'STRING',
More information about the varnish-commit
mailing list