Closing connection (similar to the Nginx 444 error)

Jean-Christophe Petit jcpetit at
Wed Mar 28 22:34:53 CEST 2012

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

More information about the varnish-misc mailing list