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
08a898f0
Unverified
Commit
08a898f0
authored
Oct 28, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cache_http1_fetch: Refactor error handling in V1F_SendReq()
parent
ab1eca8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
cache_http1_fetch.c
bin/varnishd/http1/cache_http1_fetch.c
+8
-8
No files found.
bin/varnishd/http1/cache_http1_fetch.c
View file @
08a898f0
...
...
@@ -71,6 +71,7 @@ V1F_SendReq(struct worker *wrk, struct busyobj *bo, uint64_t *ctr_hdrbytes,
struct
http_conn
*
htc
;
struct
vdp_ctx
vdc
[
1
];
intmax_t
cl
;
const
char
*
err
=
NULL
;
CHECK_OBJ_NOTNULL
(
wrk
,
WORKER_MAGIC
);
CHECK_OBJ_NOTNULL
(
bo
,
BUSYOBJ_MAGIC
);
...
...
@@ -97,16 +98,15 @@ V1F_SendReq(struct worker *wrk, struct busyobj *bo, uint64_t *ctr_hdrbytes,
VDP_Init
(
vdc
,
wrk
,
bo
->
vsl
,
NULL
,
bo
,
&
cl
);
if
(
bo
->
vdp_filter_list
!=
NULL
&&
VCL_StackVDP
(
vdc
,
bo
->
vcl
,
bo
->
vdp_filter_list
,
NULL
,
bo
))
{
VSLb
(
bo
->
vsl
,
SLT_FetchError
,
"Failure to push processors"
)
;
VSLb_ts_busyobj
(
bo
,
"Bereq"
,
W_TIM_real
(
wrk
));
htc
->
doclose
=
SC_OVERLOAD
;
return
(
-
1
)
;
VCL_StackVDP
(
vdc
,
bo
->
vcl
,
bo
->
vdp_filter_list
,
NULL
,
bo
))
err
=
"Failure to push processors"
;
else
if
(
v1f_stackv1l
(
vdc
,
bo
))
{
(
void
)
VDP_Close
(
vdc
,
NULL
,
NULL
)
;
err
=
"Failure to push V1L"
;
}
if
(
v1f_stackv1l
(
vdc
,
bo
)
)
{
VSLb
(
bo
->
vsl
,
SLT_FetchError
,
"
Failure to push V1L"
);
if
(
err
!=
NULL
)
{
VSLb
(
bo
->
vsl
,
SLT_FetchError
,
"
%s"
,
err
);
VSLb_ts_busyobj
(
bo
,
"Bereq"
,
W_TIM_real
(
wrk
));
(
void
)
VDP_Close
(
vdc
,
NULL
,
NULL
);
htc
->
doclose
=
SC_OVERLOAD
;
return
(
-
1
);
}
...
...
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