Closing connection (similar to the Nginx 444 error)
Roberto O. Fernández Crisial
roberto.fernandezcrisial at gmail.com
Wed Mar 28 22:40:17 CEST 2012
Hi Jean-Christophe,
I think you can use a mix:
1) in vcl_recv set an X-HTTP header and return error;
2) in vcl_error check if header has been set and return "444 error"
and/with close connection.
Roberto (a.k.a. @rofc)
On Wed, Mar 28, 2012 at 5:34 PM, Jean-Christophe Petit
<jcpetit at syspark.com>wrote:
> Hello everyone,
>
> would it be possible to close connections in the vcl_recv when a specific
> header is received ?
> Something like:
> if ( req.http.user-agent ~ "BAD-USER_AGENT" ) {
> set req.http.connection = "close";
> }
>
> Nginx has this feature with the error code 444
>
> Thank you,
>
> Jean-Christophe Petit
>
> ______________________________**_________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/**lists/mailman/listinfo/**varnish-misc<https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120328/ff502b0f/attachment.html>
More information about the varnish-misc
mailing list