Data type conversion functions in the std vmod now takes an additional argument fallback, which is returned if the conversion does not succeed.
The VCL syntax has not chanced significantly, and as such the Varnish 4.0 version marker is kept for Varnish 4.1.
One of the initial lines in a Varnish 4.1 VCL should read:
vcl 4.0;
New in 4.1 is the local.ip and remote.ip representing the (local) TCP connection endpoints.
With PROXY listeners the server.ip and client.ip are set from the PROXY preamble. On normal HTTP listeners the behaviour is unchanged.
The management interface enabled with -M previously supported the telnet protocol.
Support for telnet control sequences have been retired. Replacement clients like netcat or (preferred) varnishadm should be used instead.
With the new jail support, an additional runtime user (vcache) should be used for the Varnish worker child process.
Additionally, the varnishlog, varnishncsa and other Varnish shared log utilities must now be run in a context with varnish group membership.
vcl_cooldown is new, and decides how long time a VCL is kept warm after being replaced as the active VCL.
The following parameters have been retired:
Minor changes of default values on workspace_session and vsl_mask.