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
3136e23c
Commit
3136e23c
authored
Dec 18, 2013
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't forget to handle OIS_ERROR
Hit by: scoof
parent
cd0e1daf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
cache_http1_deliver.c
bin/varnishd/cache/cache_http1_deliver.c
+14
-6
No files found.
bin/varnishd/cache/cache_http1_deliver.c
View file @
3136e23c
...
...
@@ -170,16 +170,24 @@ v1d_WriteDirObj(struct req *req)
oi
=
ObjIterBegin
(
req
->
wrk
,
req
->
obj
);
XXXAN
(
oi
);
while
(
1
)
{
do
{
ois
=
ObjIter
(
oi
,
&
ptr
,
&
len
);
if
(
ois
==
OIS_DONE
)
{
switch
(
ois
)
{
case
OIS_DONE
:
AZ
(
len
);
break
;
}
if
(
VDP_bytes
(
req
,
ois
==
OIS_DATA
?
VDP_NULL
:
VDP_FLUSH
,
ptr
,
len
))
case
OIS_ERROR
:
break
;
}
case
OIS_DATA
:
case
OIS_STREAM
:
if
(
VDP_bytes
(
req
,
ois
==
OIS_DATA
?
VDP_NULL
:
VDP_FLUSH
,
ptr
,
len
))
ois
=
OIS_ERROR
;
break
;
default:
WRONG
(
"Wrong OIS value"
);
}
}
while
(
ois
==
OIS_DATA
||
ois
==
OIS_STREAM
);
(
void
)
VDP_bytes
(
req
,
VDP_FINISH
,
NULL
,
0
);
ObjIterEnd
(
&
oi
);
}
...
...
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