Set bereq.http.connection:close in vcl_pipe by default
Geoff Simmons
geoff at uplex.de
Mon Jan 27 17:03:45 CET 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 01/27/2014 03:07 PM, Lasse Karstensen wrote:
> I'm going through the documentation, and came over our handling of
> "bereq.http.Connection: close" in vcl_pipe. In the builtin VCL
> (previously default.vcl) there is a commented out line that the
> administrator can enable if they want to only do a single request
> per connection.
>
> What I'm struggling with is that we have a good amount of help
> requests and tickets because of this. I think many people must set
> connection:close for pipe to work as they expect. (possibly
> overestimated by me.)
>
> I don't know the history here, but I don't quite understand why we
> don't flip this default and save us/them the trouble?
[...]
> Any takers on the history here? Why do we do it this way?
I can't comment on the history, but I agree that 'Connection: close'
is the reasonable default. I'm pretty sure that I've never had a
situation where I've added return(pipe) but not the connection close.
The most common use case is a large, lengthy upload or download for
which no caching is necessary, and for that you have to end the
session after it's done, if you want to VCL to keep working for
whatever comes next.
Best,
Geoff
- --
** * * UPLEX - Nils Goroll Systemoptimierung
Scheffelstrae 32
22301 Hamburg
Tel +49 40 2880 5731
Mob +49 176 636 90917
Fax +49 40 42949753
http://uplex.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/
iQIcBAEBCAAGBQJS5oNUAAoJEOUwvh9pJNUR6bQQAId4ZJhgfPWgf2f5pcskpM+6
0aVyOyEyYFJRlK53kSjfLuf12YgnimV9FEzgFlm6ShGiifZ7JWD2vUIGSxZVBGu6
+O3AjrA3ctDmzIw6MC9QyBma1XBLDJADtpDc1Ie6LIrUvD4CxCJIc3166o0J4udk
FSaOEjSYyoTGSnxfrH1EVBpQX4osT+xx75C/xkvibOn39M9OCd5RplF9kRYPLf5S
gsxYtXJ6E9+h9nSsGE79tTD+Yy/dCpM+fCLKrskcIRcCXzrjJUXpv2lmIH0X//mp
sx9yRLufarPvOZg5NlCjd+3gvGGIekTQI4/Yy+5K8QCTSKRQrONv6kUYQKgqo0Un
oUCFH4mrlKJ8Nm1q9cac2+eYhKthdntYvv0DHqxKjTSDyJJYIFnzduHgOFOUs/MN
pkUMTPnSFAtG5pg3ibS46pYTgxLjj4E9oGAZj3KpRspLvgrE1KUC9rHWwT4hMJ0w
b28FH/hdv3ieHWRWQOpu2/EwXdPu+jpXjElbKTiKKJ3ZTW4kJM/3QjpAoJEoYDRF
teJBZEJm2+grtD5o8W73rT0Uea3UT0LmHUd/VL48GmiuL8GVJg9AbJB9R0F+/X+t
0O6zu4nPHxkhcnz2HAhJwWq3s3tjucg7dM/s0hxeau4C3T61j6YhgMh8BAWFv7a8
IP8KbAYRawRueAgCAOya
=DK0R
-----END PGP SIGNATURE-----
More information about the varnish-dev
mailing list