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
757e7195
Commit
757e7195
authored
Feb 29, 2024
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vrt_var: Return VRT_DECIMAL_MAX for "never" timeouts
parent
cd3c9f8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
cache_vrt_var.c
bin/varnishd/cache/cache_vrt_var.c
+4
-2
v00071.vtc
bin/varnishtest/tests/v00071.vtc
+19
-0
No files found.
bin/varnishd/cache/cache_vrt_var.c
View file @
757e7195
...
@@ -45,6 +45,8 @@
...
@@ -45,6 +45,8 @@
#include "vrt_obj.h"
#include "vrt_obj.h"
#define VRT_TMO(tmo) (isinf(tmo) ? VRT_DECIMAL_MAX : tmo)
static
char
vrt_hostname
[
255
]
=
""
;
static
char
vrt_hostname
[
255
]
=
""
;
/*--------------------------------------------------------------------
/*--------------------------------------------------------------------
...
@@ -403,7 +405,7 @@ VRT_r_bereq_##which(VRT_CTX) \
...
@@ -403,7 +405,7 @@ VRT_r_bereq_##which(VRT_CTX) \
\
\
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC); \
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC); \
CHECK_OBJ_NOTNULL(ctx->bo, BUSYOBJ_MAGIC); \
CHECK_OBJ_NOTNULL(ctx->bo, BUSYOBJ_MAGIC); \
return (
BUSYOBJ_TMO(ctx->bo, prefix, which));
\
return (
VRT_TMO(BUSYOBJ_TMO(ctx->bo, prefix, which)));
\
} \
} \
\
\
VCL_VOID \
VCL_VOID \
...
@@ -1144,7 +1146,7 @@ VRT_r_sess_##x(VRT_CTX) \
...
@@ -1144,7 +1146,7 @@ VRT_r_sess_##x(VRT_CTX) \
{ \
{ \
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC); \
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC); \
CHECK_OBJ_NOTNULL(ctx->sp, SESS_MAGIC); \
CHECK_OBJ_NOTNULL(ctx->sp, SESS_MAGIC); \
return (
SESS_TMO(ctx->sp, x));
\
return (
VRT_TMO(SESS_TMO(ctx->sp, x)));
\
} \
} \
\
\
VCL_VOID \
VCL_VOID \
...
...
bin/varnishtest/tests/v00071.vtc
0 → 100644
View file @
757e7195
varnishtest "Disabled timeout in VCL"
varnish v1 -cliok "param.set idle_send_timeout never"
varnish v1 -vcl {
backend be none;
sub vcl_recv {
return (synth(200));
}
sub vcl_synth {
set resp.http.idle_send_timeout = sess.idle_send_timeout;
}
} -start
client c1 {
txreq
rxresp
expect resp.http.idle_send_timeout == 999999999999.999
} -run
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