Doubt on mmap file backend

2018-09-19 Thread Prem Kumar
We are trying to map the file and content is written in to specific offset. In meanwhile, if try to access the mmap'd content at specified offset, we are getting NULL value. we have not called msync() yet. the mmap called with MAP_SHARED. Is it possible that mmap content can differ on read after

Re: Need some understanding on expiry thread

2018-07-26 Thread Prem Kumar
, Guillaume Quintard < guilla...@varnish-software.com> wrote: > assigned to null -> yes because you don't care about it, HSH_Derefobjcore > will be called from the mailbox in the next while iteration of exp_thread > > > -- > Guillaume Quintard > > On Wed, Jul 25, 201

Re: Need some understanding on expiry thread

2018-07-25 Thread Prem Kumar
ox turf, so we null the oc to not handle it > in the rest of the function. > > -- > Guillaume Quintard > > On Wed, Jul 25, 2018 at 9:49 AM, Prem Kumar > wrote: > >> exp_expire(struct exp_priv *ep, double now) >> { >> .. >> if (oc->timer_when > now)

Need some understanding on expiry thread

2018-07-25 Thread Prem Kumar
exp_expire(struct exp_priv *ep, double now) { .. if (oc->timer_when > now) return (oc->timer_when); if (oc->exp_flags & OC_EF_POSTED) { oc->exp_flags |= OC_EF_REMOVE; oc = NULL; } else { why do we need to set to oc to NULL after

Re: Strange behavior on varnish 5

2018-05-17 Thread Prem Kumar
wrote: > Hello, > > You are discovering grace :-) > > https://varnish-cache.org/docs/trunk/users-guide/vcl-grace.html > > "set beresp.grace = 0s;" should do it. > > -- > Guillaume Quintard > > On Thu, May 17, 2018 at 5:44 PM, Prem Kumar <n.premkumar..

Strange behavior on varnish 5

2018-05-17 Thread Prem Kumar
Hi All, We are 2 behaviors on Varnish 5: - if we set ttl = 600s , we are seeing HIT is serving the content over 10s . Origin is not changing the content and we are NOT sending if_modified_since header. - VCL_return lookup - Hit527698198 *-0.990171 why it is a hit but

Varnish 5.x - Streaming + range request

2018-02-04 Thread Prem Kumar
Just want to understand the behavior of varnish if range request while streaming of entire object in progress. lets say client1 fetches complete object of size of 300 bytes (do_stream == true) and client 2 is trying to fetch range request 100-200 bytes at the same time. the hash functions will

Re: Varnish subroutines return type different from 3.x

2018-01-03 Thread Prem Kumar
paving the way to have > subroutines return VCL types, some time in the future. > > Can I ask you what's the goal behind this? I feel like you're headed > toward an overkill solution, and we can probably avoid that. > > Cheers, > > -- > Guillaume Quintard > > On Wed,

Varnish subroutines return type different from 3.x

2018-01-03 Thread Prem Kumar
Hi All, Is there is any reason why subroutines return type changes from "static int" to "void" in varnish. During compilation of VCL to C code, all the function return type as void instead of static int before. Can you please help if there a way I can return status code from subroutine?.

Upstream connection between nginx to varnish - HTTP2

2017-11-29 Thread Prem Kumar
Hi , Trying to use nginx to varnish connection as http2 instead of http1.1. https://www.nginx.com/blog/http2-module-nginx/#QandA Currently nginx is not supporting the upstream http2. Anyone knows hitch SSL proxy will do upstream connection to varnish through http2?. or any other SSL proxy

why default_header part of vrt_backend is removed in varnish 5

2017-11-21 Thread Prem Kumar
Hi All, I'm using default headers specific to backend type in 3.1. For example backend 1 ,backend2 where default header for backend1 will be "xyz" and backend2 will be "abc". Now I don't find a way to add these headers in bereq. because I don't know what is the backend chosen and value should be