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
f6d71499
Commit
f6d71499
authored
May 05, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an assert so I don't again botch the SessClose duration field.
parent
bb997101
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
cache_session.c
bin/varnishd/cache/cache_session.c
+1
-0
cache_http1_fsm.c
bin/varnishd/http1/cache_http1_fsm.c
+4
-4
No files found.
bin/varnishd/cache/cache_session.c
View file @
f6d71499
...
...
@@ -560,6 +560,7 @@ SES_Delete(struct sess *sp, enum sess_close reason, double now)
if
(
reason
==
SC_NULL
)
reason
=
(
enum
sess_close
)
-
sp
->
fd
;
assert
(
now
>
sp
->
t_open
);
assert
(
VTAILQ_EMPTY
(
&
sp
->
privs
->
privs
));
VSL
(
SLT_SessClose
,
sp
->
vxid
,
"%s %.3f"
,
sess_close_2str
(
reason
,
0
),
now
-
sp
->
t_open
);
...
...
bin/varnishd/http1/cache_http1_fsm.c
View file @
f6d71499
...
...
@@ -201,16 +201,16 @@ HTTP1_Session(struct worker *wrk, struct req *req)
Req_Release
(
req
);
switch
(
hs
)
{
case
HTC_S_CLOSE
:
SES_Delete
(
sp
,
SC_REM_CLOSE
,
0
.
0
);
SES_Delete
(
sp
,
SC_REM_CLOSE
,
NAN
);
return
;
case
HTC_S_TIMEOUT
:
SES_Delete
(
sp
,
SC_RX_TIMEOUT
,
0
.
0
);
SES_Delete
(
sp
,
SC_RX_TIMEOUT
,
NAN
);
return
;
case
HTC_S_OVERFLOW
:
SES_Delete
(
sp
,
SC_RX_OVERFLOW
,
0
.
0
);
SES_Delete
(
sp
,
SC_RX_OVERFLOW
,
NAN
);
return
;
case
HTC_S_EOF
:
SES_Delete
(
sp
,
SC_REM_CLOSE
,
0
.
0
);
SES_Delete
(
sp
,
SC_REM_CLOSE
,
NAN
);
return
;
default:
WRONG
(
"htc_status (bad)"
);
...
...
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