-
-
Notifications
You must be signed in to change notification settings - Fork 36
Migrate to VCDK #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Migrate to VCDK #133
Conversation
1e027e8
to
67bd8f3
Compare
|
README.rst
Outdated
.. NB: This file is machine generated, DO NOT EDIT! | ||
.. | ||
.. Edit ./vmod_dynamic.vcc and run make instead | ||
.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as discussed oob, please keep the README.rst for general project info.
[AC_MSG_WARN([extended resolver functions will not be available]) | ||
AM_CONDITIONAL([HAVE_GETDNS], [false]) | ||
AC_SUBST([VTC_TESTS], "$(cd $srcdir/src && echo tests/*.vtc tests/nogetdns/*.vtc)")]) | ||
AC_SUBST([VTC_TESTS], "$(cd $srcdir/src && echo vtc/*.vtc vtc/nogetdns/*.vtc)")]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(i did not check): Please make sure that you test with and without getdns
-p vcl_path="$(abs_top_srcdir)/vcl:$(VARNISHAPI_VCLDIR)" \ | ||
-p vmod_path="$(abs_builddir)/.libs:$(vmoddir):$(VARNISHAPI_VMODDIR)" | ||
|
||
TESTS = \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect this to require some conditional on whether or not getdns is available
src/vmod_dynamic.c
Outdated
@@ -100,8 +100,8 @@ static struct VSC_lck *lck_dir; | |||
|
|||
static unsigned loadcnt = 0; | |||
|
|||
static const struct gethdr_s HDR_REQ_HOST = { HDR_REQ, "\005Host:"}; | |||
static const struct gethdr_s HDR_BEREQ_HOST = { HDR_BEREQ, "\005Host:"}; | |||
static const struct gethdr_s HDR_REQ_HOST = { HDR_REQ, (void*)"\005Host:"}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is actually an adjustment required post VC 7.7, which is not related to the vcdk migration. I am going to address it separately.
src/vmod_dynamic.vcc
Outdated
@@ -63,6 +63,119 @@ and weight though DNS. See https://en.wikipedia.org/wiki/SRV_record | |||
for a good basic explanation and `xdirector.service()`_ for | |||
details. | |||
|
|||
Supported Operating Systems |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should move to a new INSTALL.rst
f674325
to
8d488c4
Compare
Refactoring of this VMOD so that it corresponds to the schema described in https://git.sr.ht/~dridi/vcdk
Since VC 7.7, vmodtool.py generates a file that must be taken into account in Makefile.am https://varnish-cache.org/docs/trunk/whats-new/upgrading-7.7.html
Refactoring of this VMOD so that it corresponds
to the schema described in https://git.sr.ht/~dridi/vcdk