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
8c821b77
Commit
8c821b77
authored
Jun 20, 2012
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't consider pass an error when doing streaming fetch.
Patch by: tnt
parent
82c4b095
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
3 deletions
+29
-3
cache_center.c
bin/varnishd/cache_center.c
+3
-3
r01157.vtc
bin/varnishtest/tests/r01157.vtc
+26
-0
No files found.
bin/varnishd/cache_center.c
View file @
8c821b77
...
...
@@ -930,13 +930,13 @@ cnt_streambody(struct sess *sp)
AZ
(
sp
->
vbc
);
AN
(
sp
->
director
);
if
(
!
i
&&
sp
->
obj
->
objcore
!=
NULL
)
{
if
(
i
)
sp
->
doclose
=
"Stream error"
;
else
if
(
sp
->
obj
->
objcore
!=
NULL
)
{
EXP_Insert
(
sp
->
obj
);
AN
(
sp
->
obj
->
objcore
);
AN
(
sp
->
obj
->
objcore
->
ban
);
HSH_Unbusy
(
sp
);
}
else
{
sp
->
doclose
=
"Stream error"
;
}
sp
->
wrk
->
acct_tmp
.
fetch
++
;
sp
->
director
=
NULL
;
...
...
bin/varnishtest/tests/r01157.vtc
0 → 100644
View file @
8c821b77
varnishtest "#1157 - Connection close on pass and do_stream"
server s1 {
rxreq
txresp
expect req.url == "/"
rxreq
txresp
expect req.url == "/"
} -start
varnish v1 -vcl+backend {
sub vcl_recv { return (pass); }
sub vcl_fetch { set beresp.do_stream = true; }
} -start
client c1 {
txreq -url /
rxresp
expect resp.status == 200
txreq -url /
rxresp
expect resp.status == 200
} -run
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