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
60449056
Commit
60449056
authored
Apr 07, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce a HTC_S_JUNK return value
parent
5c0be22a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
cache.h
bin/varnishd/cache/cache.h
+1
-0
cache_session.c
bin/varnishd/cache/cache_session.c
+4
-0
No files found.
bin/varnishd/cache/cache.h
View file @
60449056
...
...
@@ -1000,6 +1000,7 @@ task_func_t SES_Proto_Sess;
task_func_t
SES_Proto_Req
;
enum
htc_status_e
{
HTC_S_JUNK
=
-
5
,
HTC_S_CLOSE
=
-
4
,
HTC_S_TIMEOUT
=
-
3
,
HTC_S_OVERFLOW
=
-
2
,
...
...
bin/varnishd/cache/cache_session.c
View file @
60449056
...
...
@@ -259,6 +259,10 @@ SES_RxReq(const struct worker *wrk, struct req *req, htc_complete_f *func)
return
(
HTC_S_OVERFLOW
);
}
hs
=
func
(
req
->
htc
);
if
(
hs
==
HTC_S_JUNK
)
{
WS_ReleaseP
(
req
->
htc
->
ws
,
req
->
htc
->
rxbuf_b
);
return
(
HTC_S_JUNK
);
}
if
(
hs
==
HTC_S_COMPLETE
)
{
/* Got it, run with it */
if
(
isnan
(
req
->
t_first
))
...
...
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