time out on big object ??

Geoff Simmons geoff at uplex.de
Wed Jun 1 14:11:19 CEST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 06/ 1/11 01:02 PM, Patrick CAO HUU THIEN wrote:
>>
>> You could set a higher timeout with -p send_timeout=<more than 600>, but
>> you're probably much better off having VCL return pass on that
>> particular URL. Unless you really need Varnish to take up 630 MB of
>> space just to cache your Ubuntu ISO.
>>
> 
> Yes, that's exactly what I want.
> 
> So I just add this line to the vcl_recv function:
> 
>  sub vcl_recv {
>         if (req.http.host ~ "^xxxx") {
>                 set req.backend = xxxx;
>                 *if (req.url ~ "^/iso/") {*
> *                        return(pass);*
> *                }*

Um, I don't follow. You *do* want Varnish to cache the file? If so, then
you don't want to return pass on the URL. In that case, you need a
larger value for send_timeout (assuming my guess is right that
send_timeout aborted your connection).

> The time out is always activated ?!
> The only difference is what, now, wget can use the "206 Partial content"
> option, but firefox can't :(
> 
> I am sure what I fail on something, because with the pass action, no time
> must be send to the client anymore.

There's always a send_timeout, 10 minutes by default, but you can
increase it. If you have return(pass) on the URL, then the timeout won't
interfere with the transmission, but then Varnish won't be caching the
object.

If you want Varnish to cache and transmit the object, you need to remove
return(pass), but set a higher value for send_timeout. Try starting
varnishd with -p send_timeout=1200 -- in your first mail, it looked like
53% had been transmitted in 10 minutes. so the timeout would have to be
about twice as long.


Best,
Geoff
- -- 
** * * UPLEX - Nils Goroll Systemoptimierung

Schwanenwik 24
22087 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.10 (SunOS)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJN5ixnAAoJEOUwvh9pJNURL6wP/jgu2Zaos7vD9UGPq4377U2E
8lF+68u79UKl9C6bL1+Av1g6LE4K0AwB00+r+yaNs5O4cuAZx4YdqzphBXEnH3zH
Np7NZQY+bw8WGXu7hIg/N9b4bhnqzqIOcrPhbRHE1/T1zqrArD/5mbfFMkGeoYxd
eTXP/TsN2Ng557WMLc2EQaxGxjKpzRTtovx8LjA+KksGB3JTMuPDNCuD/3lg5Evr
IrH/V0AqqN3Vn7LJt0BN/FU6NL71BEmjBj8srZ5fAxsxQQn79vU0mgWySaO8orvK
XnyJJ0B/119VhaXNVzWEY16AkZctZB3TDV8wmHsKF420LIYPpP6q1iWK9viL18zl
JzaE3A2qrTUichV4b+Mz+Dkrk9lIPmPwlFzJA++S397havl1nhWNRgCHShpLeGb6
JYC6VxrvW7uuyW1SrwetwQ7CoqcXY1NInj0h9fgAPqL87gb4Eiq+fZ3U4MDmALns
2PxBoHzVz5L+3GbidBXPgM63PFnW10erFI94Hl4nJjW5ZCiKGGHqlT3JzXl0hP4U
W985xyWG5w0oHjwOD2Y2GjQWSLN/NfMTrM5fozsH68knSMmdZx3fHFmfQTzIqB59
H3/H1EwBXwCPGmOeDJm6JOfzYSwM61k3j7RdXh1hH8i+6X5ZWqLF9QBZCLE0ps1D
4ME5q1xH+9kBIB+MKat6
=IyMc
-----END PGP SIGNATURE-----




More information about the varnish-misc mailing list