Re: [Patch] SO_REUSEPORT support from master process

2014-08-28 Thread Sepherosa Ziehau
On Thu, Aug 28, 2014 at 12:23 AM, Lu, Yingqi wrote: > Hi Sephe, > > Thanks for your email. > > The main difference between your patch and this prototype is that we create > certain number of duplicated listen sockets in the master process instead of > child processes. All the child processes hav

Reading request body in PRE_ACCESS phase

2014-08-28 Thread Fasih
Hi Guys I am trying to read the request body in pre_access phase. This seems like a regular requirement but I dont seem to find a good way to do this. Since the request body is read asynchronously, I have to do phases++ and core_run_phases myself in the read_completion callback. I also have to set

Re: Reading request body in PRE_ACCESS phase

2014-08-28 Thread Yichun Zhang (agentzh)
Hello! On Thu, Aug 28, 2014 at 10:34 AM, Fasih wrote: > I am trying to read the request body in pre_access phase. This seems > like a regular requirement but I dont seem to find a good way to do > this. Since the request body is read asynchronously, I have to do > phases++ and core_run_phases myse

ngx_str_rbtree_lookup() always return NULL

2014-08-28 Thread Donatas Abraitis
Hey, who can explain this function's behavior? Am I using this wrong? It always returns NULL, though I 100% ensured, there should be. Is here any way to list all nodes in the rbtree? static int purge_from_cache(ngx_slab_pool_t *shpool, ngx_rbtree_t *rbtree, ngx_str_t ip, ngx_http_request_t *r) {

nginx tempfiles

2014-08-28 Thread Nick Kew
I have a filter that may want to rewrite request bodies. Stream-editing an nginx chain is straightforward enough (the equivalent output filter works fine). But as I understand it, I need to cater for a case where a request body is in r->request_body->temp_file. Assuming it's there for a reason, I