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
1a8f1056
Commit
1a8f1056
authored
Feb 15, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log useful gunzip state before we bail out
parent
6fa90ee4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
vtc_http.c
bin/varnishtest/vtc_http.c
+4
-3
No files found.
bin/varnishtest/vtc_http.c
View file @
1a8f1056
...
...
@@ -554,12 +554,10 @@ cmd_http_gunzip_body(CMD_ARGS)
assert
(
Z_OK
==
inflateInit2
(
&
vz
,
31
));
i
=
inflate
(
&
vz
,
Z_FINISH
);
if
(
i
!=
Z_STREAM_END
)
vtc_log
(
hp
->
vl
,
0
,
"Gunzip error = %d (%s) in:%jd out:%jd"
,
i
,
vz
.
msg
,
(
intmax_t
)
vz
.
total_in
,
(
intmax_t
)
vz
.
total_out
);
hp
->
bodyl
=
vz
.
total_out
;
memcpy
(
hp
->
body
,
p
,
hp
->
bodyl
);
free
(
p
);
vtc_log
(
hp
->
vl
,
3
,
"new bodylen %u"
,
hp
->
bodyl
);
vtc_dump
(
hp
->
vl
,
4
,
"body"
,
hp
->
body
,
hp
->
bodyl
);
bprintf
(
hp
->
bodylen
,
"%u"
,
hp
->
bodyl
);
vtc_log
(
hp
->
vl
,
4
,
"startbit = %ju %ju/%ju"
,
...
...
@@ -568,6 +566,9 @@ cmd_http_gunzip_body(CMD_ARGS)
vz
.
last_bit
,
vz
.
last_bit
>>
3
,
vz
.
last_bit
&
7
);
vtc_log
(
hp
->
vl
,
4
,
"stopbit = %ju %ju/%ju"
,
vz
.
stop_bit
,
vz
.
stop_bit
>>
3
,
vz
.
stop_bit
&
7
);
if
(
i
!=
Z_STREAM_END
)
vtc_log
(
hp
->
vl
,
0
,
"Gunzip error = %d (%s) in:%jd out:%jd"
,
i
,
vz
.
msg
,
(
intmax_t
)
vz
.
total_in
,
(
intmax_t
)
vz
.
total_out
);
assert
(
Z_OK
==
inflateEnd
(
&
vz
));
}
...
...
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