NGX_HTTP_CACHE and upstream

2013-05-07 Thread alexander_koch_log
Hi, When compiling nginx with NGX_HTTP_CACHE and using upstream backends - are responses automatically cached in memory without the use of proxy_cache? Thanks, Alex Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238929,238929#msg-238929 __

module example with rbtree

2013-05-06 Thread alexander_koch_log
Hi, Beside the file cache and ssl sharing sessions, does anyone knows of a 3rd party module which uses rbtree to store information? Thanks, Alex Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238920,238920#msg-238920 ___ nginx mailing list

Module to check if file contains a character

2013-03-16 Thread alexander_koch_log
Hello, Without reading the whole file, what is the best approach to only check if the beginning of the file contains a specific character? Would something like this be the right approach? b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t)); b->file = ngx_pcalloc(r->pool, sizeof(ngx_file_t)); then se

USE_THREAD nginx?

2013-03-04 Thread alexander_koch_log
Hi, I see under auto/options, the macro USE_THREAD is set to no while the configure options are disabled. Out of curiosity, are they planned to bundle threading with the reactor loop in the future? or why is threading set as a "potential" option here? Thanks, Alex