Commit e06a972c authored by Nils Goroll's avatar Nils Goroll

Revert "update README on use of encode/decode/transocde in vcl_init()/vcl_fini()"

Actually this bit of the README rightfully only applies to pre 5.0

This reverts commit 371122cd.
parent b748d301
Pipeline #124 skipped
......@@ -404,12 +404,6 @@ string is an illegal format for the decoding scheme.
If the ``blob`` object constructor fails, then the VCL program will
fail to load, and the VCC compiler will emit an error message.
For varnish versions before 5.0, the VMOD functions -- ``encode()``,
``decode()`` and ``transcode()`` -- may not be called in
``vcl_init()`` or ``vcl_fini()`` (since a workspace must be
available). Use in ``vcl_init()`` will also cause the VCL program to
fail with a VCC compiler error.
If any of the VMOD's methods or functions fail at runtime, then an
error message will be written to the Varnish log using the tag
``VCL_Error``. The encoders and decoders return ``NULL`` on failure;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment