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
1bf8b02f
Commit
1bf8b02f
authored
Nov 29, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorder code in cnt_done() for improved clarity
parent
a68844e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
cache_center.c
bin/varnishd/cache/cache_center.c
+8
-7
No files found.
bin/varnishd/cache/cache_center.c
View file @
1bf8b02f
...
...
@@ -330,14 +330,19 @@ cnt_done(struct sess *sp)
sp
->
wrk
->
is_gunzip
=
0
;
sp
->
wrk
->
is_gzip
=
0
;
if
(
sp
->
vcl
!=
NULL
&&
sp
->
esi_level
==
0
)
{
SES_Charge
(
sp
);
/* If we did an ESI include, don't mess up our state */
if
(
sp
->
esi_level
>
0
)
return
(
1
);
if
(
sp
->
vcl
!=
NULL
)
{
if
(
sp
->
wrk
->
vcl
!=
NULL
)
VCL_Rel
(
&
sp
->
wrk
->
vcl
);
sp
->
wrk
->
vcl
=
sp
->
vcl
;
sp
->
vcl
=
NULL
;
}
SES_Charge
(
sp
);
sp
->
t_end
=
W_TIM_real
(
sp
->
wrk
);
WSP
(
sp
,
SLT_Debug
,
"PHK req %.9f resp %.9f end %.9f open %.9f"
,
...
...
@@ -345,7 +350,7 @@ WSP(sp, SLT_Debug, "PHK req %.9f resp %.9f end %.9f open %.9f",
if
(
sp
->
xid
==
0
)
{
// sp->t_req = sp->t_end;
sp
->
t_resp
=
sp
->
t_end
;
}
else
if
(
sp
->
esi_level
==
0
)
{
}
else
{
dp
=
sp
->
t_resp
-
sp
->
t_req
;
da
=
sp
->
t_end
-
sp
->
t_resp
;
dh
=
sp
->
t_req
-
sp
->
t_open
;
...
...
@@ -361,10 +366,6 @@ WSP(sp, SLT_Debug, "PHK req %.9f resp %.9f end %.9f open %.9f",
sp
->
xid
=
0
;
WSL_Flush
(
sp
->
wrk
,
0
);
/* If we did an ESI include, don't mess up our state */
if
(
sp
->
esi_level
>
0
)
return
(
1
);
sp
->
t_open
=
sp
->
t_end
;
sp
->
t_resp
=
NAN
;
...
...
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