Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
4118ad53
Commit
4118ad53
authored
Apr 22, 2013
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the backend timeout vars to busyobj
parent
3e2c418d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
cache_vrt_var.c
bin/varnishd/cache/cache_vrt_var.c
+6
-8
generate.py
lib/libvcl/generate.py
+3
-3
No files found.
bin/varnishd/cache/cache_vrt_var.c
View file @
4118ad53
...
...
@@ -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
)
...
...
lib/libvcl/generate.py
View file @
4118ad53
...
...
@@ -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'
,
...
...
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