Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trackrdrd
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
trackrdrd
Commits
87c58fd4
Commit
87c58fd4
authored
Feb 06, 2024
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update VSB handling for Varnish 7.x.
parent
cf596c3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
worker.c
src/worker.c
+8
-2
No files found.
src/worker.c
View file @
87c58fd4
...
...
@@ -350,8 +350,10 @@ static void wrk_cleanup(void)
{
if
(
cleaned
)
return
;
for
(
int
i
=
0
;
i
<
config
.
nworkers
;
i
++
)
for
(
int
i
=
0
;
i
<
config
.
nworkers
;
i
++
)
{
VSB_fini
(
thread_data
[
i
].
wrk_data
->
sb
);
free
(
thread_data
[
i
].
wrk_data
);
}
free
(
thread_data
);
AZ
(
pthread_mutex_destroy
(
&
spmcq_datawaiter_lock
));
AZ
(
pthread_cond_destroy
(
&
spmcq_datawaiter_cond
));
...
...
@@ -361,6 +363,8 @@ static void wrk_cleanup(void)
int
WRK_Init
(
void
)
{
char
*
recbuf
;
thread_data
=
(
thread_data_t
*
)
malloc
(
config
.
nworkers
*
sizeof
(
thread_data_t
));
...
...
@@ -383,7 +387,9 @@ WRK_Init(void)
wrk
->
magic
=
WORKER_DATA_MAGIC
;
wrk
->
sb
=
(
struct
vsb
*
)
malloc
(
sizeof
(
struct
vsb
));
AN
(
wrk
->
sb
);
AN
(
VSB_new
(
wrk
->
sb
,
NULL
,
config
.
max_reclen
+
1
,
VSB_FIXEDLEN
));
recbuf
=
(
char
*
)
malloc
(
config
.
max_reclen
+
1
);
AN
(
recbuf
);
AN
(
VSB_init
(
wrk
->
sb
,
recbuf
,
config
.
max_reclen
+
1
));
VSTAILQ_INIT
(
&
wrk
->
freerec
);
wrk
->
nfree_rec
=
0
;
VSTAILQ_INIT
(
&
wrk
->
freechunk
);
...
...
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