Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
1767f1bb
Commit
1767f1bb
authored
Nov 07, 2014
by
Lasse Karstensen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consistent use of name, mention parameter.
parent
69a4711e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
vcl-inline-c.rst
doc/sphinx/users-guide/vcl-inline-c.rst
+7
-3
No files found.
doc/sphinx/users-guide/vcl-inline-c.rst
View file @
1767f1bb
Using
In-
line C to extend Varnish
Using
in
line C to extend Varnish
---------------------------------
(Here there be dragons. Big and mean ones.)
You can use *in
-
line C* to extend Varnish. Please note that you can
You can use *inline C* to extend Varnish. Please note that you can
seriously mess up Varnish this way. The C code runs within the Varnish
Cache process so if your code generates a segfault the cache will crash.
One of the first uses of
In-
line C was logging to `syslog`.::
One of the first uses of
in
line C was logging to `syslog`.::
# The include statements must be outside the subroutines.
C{
...
...
@@ -22,3 +22,7 @@ One of the first uses of In-line C was logging to `syslog`.::
syslog(LOG_INFO, "Something happened at VCL line XX.");
}C
}
To use inline C you need to enable it with the ``vcc_allow_inline_c``
parameter.
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