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 <[email protected]>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 > [email protected] > https://www.varnish-cache.org/**lists/mailman/listinfo/**varnish-misc<https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc> >
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
