Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
varnishevent
Commits
de8da927
Commit
de8da927
authored
Apr 15, 2015
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
actually set the DATA_DONE state of chunks when they're done
parent
65d5fb00
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
varnishevent.c
src/varnishevent.c
+2
-0
No files found.
src/varnishevent.c
View file @
de8da927
...
...
@@ -296,6 +296,7 @@ event(struct VSL_data *vsl, struct VSL_transaction * const pt[], void *priv)
for
(
int
i
=
0
;
i
<
nchunk
;
i
++
)
{
assert
(
n
>
0
);
chunk
=
take_chunk
();
assert
(
chunk
->
state
==
DATA_EMPTY
);
if
(
chunk
==
NULL
)
{
no_free_chunk
++
;
LOG_Log
(
LOG_DEBUG
,
...
...
@@ -310,6 +311,7 @@ event(struct VSL_data *vsl, struct VSL_transaction * const pt[], void *priv)
if
(
cp
>
config
.
chunk_size
)
cp
=
config
.
chunk_size
;
memcpy
(
chunk
->
data
,
p
,
cp
);
chunk
->
state
=
DATA_DONE
;
p
+=
cp
;
n
-=
cp
;
total_chunks
++
;
...
...
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