On 17 February 2010 18:46, Poul-Henning Kamp <p...@phk.freebsd.dk> wrote: > In message <282e72051002170852g532cd8acqb570e6db4b829...@mail.gmail.com>, Paul > Wright writes: > >>(The cookie header ensures the request is passed through to the >>backend. Curl will respond with "Failure when receiving data from the >>peer".) > > How on earth did you get the Range header to be passed through to > the backend ? It should have been filtered out...
I added the following to the top of vcl_recv() if ( req.http.Range ) { unset req.http.Range; } Varnish ran happily until tripping over the same bug (#649) as victori (on r4573). A couple of examples follow. New personal best of 1 hour, 20 minutes uptime! Paul. Child (26791) died signal=6 Child (26791) Panic message: Assert error in VCA_Prep(), cache_acceptor.c line 184: Condition(TCP_Check(setsockopt(sp->fd, 0xffff, 0x0080, &linger, sizeof linger))) not true. errno = 22 (Invalid argument) thread = (cache-worker) ident = -smalloc,-hcritbit,poll Backtrace: 447b2b: /opt/sbin/varnishd'pan_backtrace+0x1b [0x447b2b] 447e35: /opt/sbin/varnishd'pan_ic+0x1c5 [0x447e35] 41862a: /opt/sbin/varnishd'VCA_Prep+0x29a [0x41862a] 42a466: /opt/sbin/varnishd'cnt_first+0xb6 [0x42a466] 42cd6a: /opt/sbin/varnishd'CNT_Session+0x56a [0x42cd6a] 44a83f: /opt/sbin/varnishd'wrk_do_cnt_sess+0x1bf [0x44a83f] 449db2: /opt/sbin/varnishd'wrk_thread_real+0x882 [0x449db2] 44a365: /opt/sbin/varnishd'wrk_thread+0x135 [0x44a365] fffffd7ff653acf5: /lib/amd64/libc.so.1'_thrp_setup+0x8d [0xfffffd7ff653acf5] fffffd7ff653afb0: /lib/amd64/libc.so.1'_lwp_start+0x0 [0xfffffd7ff653afb0] sp = 10e8ae08 { fd = 73, id = 73, xid = 0, client = 94.196.213.123:50084, step = STP_FIRST, handling = deliver, restarts = 0, esis = 0 ws = 10e8ae78 { id = "sess", {s,f,r,e} = {10e8c400,+21,0,+65536}, }, http[req] = { ws = 10e8ae78[sess] "", "/pic/p2031b.jpg", "HTTP/1.1", "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)", "Accept: image/png,image/*;q=0.8,*/*;q=0.5", "Accept-Language: en-us,en;q=0.5", "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7", "Keep-Alive: 300", "Connection: keep-alive", "Referer: http://www.affordablegiftsolutions.com/index.php?option=com_cmsshopbuilder&view=category&id=55&Itemid=5&limitstart=400", "host: media.firebox.com", "X-Forwarded-For: 67.234.17.245", }, worker = fffffd7ff2c96d30 { ws = fffffd7ff2c96e78 { id = "wrk", {s,f,r,e} = {fffffd7ff2c84c40,fffffd7ff2c84c40,0,+65536}, }, }, }, Child cleanup complete child (2199) Started Child (2199) said Closed fds: 3 4 5 9 10 12 13 Child (2199) said Child starts Child (8098) died signal=6 Child (8098) Panic message: Assert error in VCA_Prep(), cache_acceptor.c line 184: Condition(TCP_Check(setsockopt(sp->fd, 0xffff, 0x0080, &linger, sizeof linger))) not true. errno = 22 (Invalid argument) thread = (cache-worker) ident = -smalloc,-hcritbit,poll Backtrace: 447b1b: /opt/sbin/varnishd'pan_backtrace+0x1b [0x447b1b] 447e25: /opt/sbin/varnishd'pan_ic+0x1c5 [0x447e25] 41862a: /opt/sbin/varnishd'VCA_Prep+0x29a [0x41862a] 42a456: /opt/sbin/varnishd'cnt_first+0xb6 [0x42a456] 42cd5a: /opt/sbin/varnishd'CNT_Session+0x56a [0x42cd5a] 44a82f: /opt/sbin/varnishd'wrk_do_cnt_sess+0x1bf [0x44a82f] 449da2: /opt/sbin/varnishd'wrk_thread_real+0x882 [0x449da2] 44a355: /opt/sbin/varnishd'wrk_thread+0x135 [0x44a355] fffffd7ff653acf5: /lib/amd64/libc.so.1'_thrp_setup+0x8d [0xfffffd7ff653acf5] fffffd7ff653afb0: /lib/amd64/libc.so.1'_lwp_start+0x0 [0xfffffd7ff653afb0] sp = ee89a8 { fd = 17, id = 17, xid = 0, client = 217.111.162.2:58987, step = STP_FIRST, handling = deliver, restarts = 0, esis = 0 ws = ee8a18 { id = "sess", {s,f,r,e} = {ee9fa0,+20,0,+65536}, }, http[req] = { ws = ee8a18[sess] "", "/v/2000/2381/98x74.jpg", "HTTP/1.1", "Accept: */*", "Referer: http://www.firebox.com/product/2480/LEGO-Mindstorms-NXT-2.0?via=cat", "Accept-Language: en-gb", "UA-CPU: x86", "User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2)", "Host: media.firebox.com", "Cache-Control: max-stale=0", "Connection: Keep-Alive", "X-BlueCoat-Via: A1EDA8423E101D0C", "X-Forwarded-For: 89.189.78.18, 82.114.160.35", }, worker = fffffd7ff83edd30 { ws = fffffd7ff83ede78 { id = "wrk", {s,f,r,e} = {fffffd7ff83dbc40,fffffd7ff83dbc40,0,+65536}, }, }, }, _______________________________________________ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc