Re: Can thread pool improve performance for such scenario

2015-06-30 Thread Jerry OELoo
Backend is uwsgi TCP protocol. Thanks for your clarify. I am understanding now, Thread pool should not useful to improve my case. On Tue, Jun 30, 2015 at 5:17 PM, Lukas Tribus wrote: >> Hi All: >> I am using Nginx as a reverse proxy which provide a web API (HTTP GET >> ) to client. >> and the bac

Can thread pool improve performance for such scenario

2015-06-29 Thread Jerry OELoo
Hi All: I am using Nginx as a reverse proxy which provide a web API (HTTP GET ) to client. and the backend application will get request from nginx and do some time-consuming processing (1-2 seconds) then response result to nginx, Nginx return result to client. I think this is synchronize operation.

[Nginx] How to support file upload in Nginx 1.8

2015-05-28 Thread Jerry OELoo
Hi I am using Nginx 1.8 version, and Is it default support file upload, I found there is clientbodyinfileonly in Nginx, so is it official method to support file upload>? Thanks~ -- Rejoice,I Desire! ___ nginx mailing list nginx@nginx.org http://mailm

Where to store global settings in filter

2014-08-24 Thread Jerry OELoo
Hi All: I have some settings in a json file (not in nginx.conf file), Currently, in my module filter function, I will open file, read file, close file every time filter function is called. I think this is not so good, so I think it's better call a function just one time, and save the setting in a g

Why body filter not work

2014-08-05 Thread Jerry OELoo
Hi. I just copy the code from Evan Miller's body filter. http://www.evanmiller.org/nginx-modules-guide.html#filters-body, however, In my browser I could not see inserted string () And I found that request header. Transfer-Encoding: chunked Is anything that I am wrong. Thanks. -- Rejoice,I Desi

How to directly return in filter

2014-08-01 Thread Jerry OELoo
Hi All: I am developing a module in Nginx-1.6.0, Now My module work as a filter. static ngx_int_t ngx_http_my_handler(ngx_http_request_t *r) { ... return ngx_http_output_filter(); } I use ngx_http_output_filter() to send the response to client. Now I want to do some extra thing in my ha