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
555735f0
Commit
555735f0
authored
Aug 24, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Even harder asserts for kristians test
parent
27e11399
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
cache_center.c
bin/varnishd/cache_center.c
+11
-3
No files found.
bin/varnishd/cache_center.c
View file @
555735f0
...
...
@@ -164,6 +164,9 @@ cnt_prepresp(struct sess *sp)
CHECK_OBJ_NOTNULL
(
sp
->
obj
,
OBJECT_MAGIC
);
CHECK_OBJ_NOTNULL
(
sp
->
vcl
,
VCL_CONF_MAGIC
);
if
(
sp
->
wrk
->
do_stream
)
AssertObjCorePassOrBusy
(
sp
->
obj
->
objcore
);
sp
->
wrk
->
res_mode
=
0
;
if
((
sp
->
wrk
->
h_content_length
!=
NULL
||
!
sp
->
wrk
->
do_stream
)
&&
...
...
@@ -242,10 +245,12 @@ cnt_prepresp(struct sess *sp)
default:
WRONG
(
"Illegal action in vcl_deliver{}"
);
}
if
(
sp
->
wrk
->
do_stream
)
if
(
sp
->
wrk
->
do_stream
)
{
AssertObjCorePassOrBusy
(
sp
->
obj
->
objcore
);
sp
->
step
=
STP_STREAMBODY
;
else
}
else
{
sp
->
step
=
STP_DELIVER
;
}
return
(
0
);
}
...
...
@@ -817,8 +822,9 @@ cnt_fetchbody(struct sess *sp)
RFC2616_Do_Cond
(
sp
))
sp
->
wrk
->
do_stream
=
0
;
AssertObjCorePassOrBusy
(
sp
->
obj
->
objcore
);
if
(
sp
->
wrk
->
do_stream
)
{
AssertObjCorePassOrBusy
(
sp
->
obj
->
objcore
);
sp
->
step
=
STP_PREPRESP
;
return
(
0
);
}
...
...
@@ -886,6 +892,8 @@ cnt_streambody(struct sess *sp)
RES_StreamStart
(
sp
);
AssertObjCorePassOrBusy
(
sp
->
obj
->
objcore
);
i
=
FetchBody
(
sp
);
sp
->
wrk
->
h_content_length
=
NULL
;
...
...
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