Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-backend_dyn
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
Carl P. Corliss
libvmod-backend_dyn
Commits
7980ea42
Commit
7980ea42
authored
Dec 04, 2015
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
let VRT_new_backend() add a probe in create(), don't do it all by hand
parent
977cde57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
vmod.c
src/vmod.c
+1
-13
No files found.
src/vmod.c
View file @
7980ea42
...
...
@@ -209,6 +209,7 @@ vmod_create(VRT_CTX, struct vmod_priv *priv, VCL_STRING vcl_name,
be
.
ipv4_suckaddr
=
sa4
;
be
.
ipv6_suckaddr
=
sa6
;
be
.
probe
=
probe
;
#define DA(x) if (x != NULL && x[0] != '\0') be.x = strdup(x);
#define DN(x) be.x = x;
VRT_BACKEND_HANDLE
();
...
...
@@ -222,19 +223,6 @@ vmod_create(VRT_CTX, struct vmod_priv *priv, VCL_STRING vcl_name,
dir
=
VRT_new_backend
(
ctx
,
&
be
);
CHECK_OBJ_NOTNULL
(
dir
,
DIRECTOR_MAGIC
);
if
(
probe
!=
NULL
)
{
struct
backend
*
backend
;
struct
tcp_pool
*
tpool
;
CHECK_OBJ
(
probe
,
VRT_BACKEND_PROBE_MAGIC
);
CAST_OBJ_NOTNULL
(
backend
,
dir
->
priv
,
BACKEND_MAGIC
);
AZ
(
backend
->
probe
);
tpool
=
VBT_Ref
(
sa4
,
sa6
);
AN
(
tpool
);
VBP_Insert
(
backend
,
probe
,
tpool
);
AN
(
backend
->
probe
);
}
ALLOC_OBJ
(
bentry
,
BENTRY_MAGIC
);
AN
(
bentry
);
bentry
->
be
=
dir
;
...
...
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