Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvdfp-pipe
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
libvdfp-pipe
Commits
5e1123d2
Unverified
Commit
5e1123d2
authored
Oct 20, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust to Varnish-Cache 7.5
parent
fc10e6ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
configure.ac
configure.ac
+2
-2
vdfp_pipe.c
src/vdfp_pipe.c
+7
-8
No files found.
configure.ac
View file @
5e1123d2
AC_PREREQ([2.69])
AC_COPYRIGHT([Copyright
(c) 2019
UPLEX - Nils Goroll Systemoptimierung])
AC_COPYRIGHT([Copyright
2019 - 2024
UPLEX - Nils Goroll Systemoptimierung])
AC_INIT([libvdfp-pipe],[trunk],[varnish-support@uplex.de],[vdfp-pipe])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR(src/vdfp_pipe.vcc)
...
...
@@ -53,7 +53,7 @@ AM_CONDITIONAL(HAVE_GENHTML, [test -n "$GENHTML"])
m4_ifndef([VARNISH_PREREQ], AC_MSG_ERROR([Need varnish.m4 -- see README.rst]))
VARNISH_PREREQ([7.
4
],[trunk])
VARNISH_PREREQ([7.
5
],[trunk])
VARNISH_VMODS([pipe])
VMOD_TESTS="$(cd $srcdir/src && echo tests/*.vtc)"
...
...
src/vdfp_pipe.c
View file @
5e1123d2
...
...
@@ -174,9 +174,8 @@ mk_dup(int oldfd, int newfd)
}
static
int
v_matchproto_
(
vdp_init_f
)
vdp_init
(
VRT_CTX
,
struct
vdp_ctx
*
vc
,
void
**
priv
,
struct
objcore
*
objcore
)
vdp_init
(
VRT_CTX
,
struct
vdp_ctx
*
vc
,
void
**
priv
)
{
struct
req
*
req
;
struct
vdp_state
*
state
;
struct
vdp_entry
*
vdpe
;
struct
vdp_map
map_entry
,
*
map
;
...
...
@@ -187,19 +186,19 @@ vdp_init(VRT_CTX, struct vdp_ctx *vc, void **priv, struct objcore *objcore)
struct
setenv_head
*
setenv_head
;
char
**
argv
;
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
CHECK_OBJ_NOTNULL
(
vc
,
VDP_CTX_MAGIC
);
req
=
vc
->
req
;
CHECK_OBJ_NOTNULL
(
req
,
REQ_MAGIC
);
AN
(
req
->
vcl
);
CHECK_OBJ_NOTNULL
(
vc
->
hp
,
HTTP_MAGIC
)
;
AN
(
vc
->
clen
);
AN
(
priv
);
AZ
(
*
priv
);
CHECK_OBJ_ORNULL
(
objcore
,
OBJCORE_MAGIC
);
vdpe
=
VTAILQ_LAST
(
&
vc
->
vdp
,
vdp_entry_s
);
CHECK_OBJ_NOTNULL
(
vdpe
,
VDP_ENTRY_MAGIC
);
AN
(
vdpe
->
vdp
);
map_entry
.
vdp
=
vdpe
->
vdp
;
map_entry
.
vcl
=
req
->
vcl
;
map_entry
.
vcl
=
ctx
->
vcl
;
map
=
VRBT_FIND
(
vdp_tree
,
&
tree_h
,
&
map_entry
);
CHECK_OBJ_NOTNULL
(
map
,
PIPE_VDP_MAP_MAGIC
);
CHECK_OBJ_NOTNULL
(
map
->
obj
,
PIPE_VDP_MAGIC
);
...
...
@@ -309,7 +308,7 @@ vdp_init(VRT_CTX, struct vdp_ctx *vc, void **priv, struct objcore *objcore)
state
->
fds
[
STDIN_FILENO
].
fd
=
in
[
1
];
state
->
fds
[
STDOUT_FILENO
].
fd
=
out
[
0
];
state
->
fds
[
STDERR_FILENO
].
fd
=
err
[
0
];
http_Unset
(
req
->
res
p
,
H_Content_Length
);
http_Unset
(
vc
->
h
p
,
H_Content_Length
);
return
(
0
);
}
...
...
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