Re: Different host headers - same cache?

2016-10-17 Thread Frederik Ramm
Hi,

On 10/16/2016 10:30 PM, Frederik Ramm wrote:
> I should be able to do this:
> 
> if (bereq.backend == "somedirector")

...

> vgc.c:2152:35: error: comparison with string literal results in
> unspecified behavior [-Werror=address]

Ok, I meanwhile found out two things:

1. bereq.backend will contain the actual backend selected by the
director, not the director itself;

2. for some reason I cannot do a string equality check against
bereq.backend like above, but I can do

if (std.strstr(bereq.backend, "somebackend"))
{
...
}

- which doesn't make me entirely happy since a strstr is certainly more
expensive than a string equality check but at least that seems to work!

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09" E008°23'33"

___
varnish-misc mailing list
varnish-misc@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Varnish Error 503 Backend fetch failed

2016-10-17 Thread Guilleret Florian
Hi,

I'm getting weird 503 error on varnish.

On page with ESI ( not on every page of my website ) i got Error 503
Backend fetch failed.

On varnish log i can saw FetchError http read error: overflow :


* << BeReq >> 9
- Begin bereq 8 fetch
- Timestamp Start: 1476370852.736703 0.00 0.00
- BereqMethod GET
- BereqURL /pageXXX.html
- BereqProtocol HTTP/1.1
- BereqHeader Host: www.website.com
- BereqHeader User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0)
Gecko/20100101 Firefox/47.0
- BereqHeader Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
- BereqHeader Accept-Language: fr-FR
- BereqHeader Cookie: mage-translation-storage=%7B%7D;
mage-translation-file-version=%7B%7D; mage-cache-storage=%7B%7D;
mage-cache-storage-section-invalidation=%7B%7D; mage-cache-sessid=true;
X-Magento-Vary=f970ba1c8edf4251be121a7535f2ce003b791953; form_key=lV5GbPY6uP
- BereqHeader X-Forwarded-For: 80.74.72.196
- BereqHeader Accept-Encoding: gzip
- BereqHeader X-Varnish: 9
- VCL_call BACKEND_FETCH
- VCL_return fetch
- BackendOpen 53 default(127.0.0.1,,81) 127.0.0.1 59720
- Backend 53 default default(127.0.0.1,,81)
- Timestamp Bereq: 1476370852.736959 0.000256 0.000256
- FetchError http read error: overflow
- BackendClose 53 default(127.0.0.1,,81)
- Timestamp Beresp: 1476370865.707061 12.970358 12.970102
- Timestamp Error: 1476370865.707072 12.970368 0.11
- BerespProtocol HTTP/1.1
- BerespStatus 503
- BerespReason Service Unavailable
- BerespReason Backend fetch failed
- BerespHeader Date: Thu, 13 Oct 2016 15:01:05 GMT
- BerespHeader Server: Varnish
- VCL_call BACKEND_ERROR
- BerespHeader Content-Type: text/html; charset=utf-8
- BerespHeader Retry-After: 5
- VCL_return deliver
- Storage malloc Transient
- ObjProtocol HTTP/1.1
- ObjStatus 503
- ObjReason Backend fetch failed
- ObjHeader Date: Thu, 13 Oct 2016 15:01:05 GMT
- ObjHeader Server: Varnish
- ObjHeader Content-Type: text/html; charset=utf-8
- ObjHeader Retry-After: 5
- Length 278
- BereqAcct 611 0 611 7767 0 7767
- End


My website is a magento 2. So I suppose this is my issue :

 
http://devdocs.magento.com/guides/v2.0/config-guide/varnish/tshoot-varnish-503.html


But even with this option http_resp_hdr_len it doesn't work...

Can anyone know how to debug this ?
___
varnish-misc mailing list
varnish-misc@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc