Thanks. I will try both advise.by goelviek2011@gmail.com - Nginx Mailing List - English
Happy Birthday Igor :)by goelviek2011@gmail.com - Nginx Mailing List - English
Is there already available function to do url encode/decode of data in nginx module development kit ? regards Vivek Goel _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-develby goelviek2011@gmail.com - Nginx Development
ok found I need to fire following command after SIGUSR2 kill -WINCH $(cat nginx.pid.oldbin) kill -QUIT $(cat nginx.pid.oldbin) regards Vivek Goel On Mon, Jul 9, 2012 at 2:40 PM, vivek goel <goelvivek2011@gmail.com> wrote: > I am trying to upgrade nginx binary on fly. > But when I am giving signal to upgrade the binary it is giving following > error: > > 2012/07/09 14:34:by goelviek2011@gmail.com - Nginx Development
I am trying to upgrade nginx binary on fly. But when I am giving signal to upgrade the binary it is giving following error: 2012/07/09 14:34:39 22688#0: the changing binary signal is ignored: you should shutdown or terminate before either old or new binary's process My core configuration look like this: user vivek; worker_processes 2; events { worker_connections 1024; } regards Viveby goelviek2011@gmail.com - Nginx Development
Hi, I am using a non-blocking library which reads from file-system and calls a callback when event has accrued. I want to integrate it with nginx module. From where I can find an example where I can send response from third party library callback? What I am planning 1. Read complete request body of the client. 2. Register callback with nginx request object. 3. When callback is fired send responseby goelviek2011@gmail.com - Nginx Development
I want to identify the correct setting for nginx worker count. on my server I am serving big static files and io read is slow. Is there a way I can identify that all nginx worker process are busy in doing work and I should increase number of nginx worker? regards Vivek Goel _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/maiby goelviek2011@gmail.com - Nginx Development
I am custom compiling pcre library. If I am running nginx configure it is not detecting that library Setting up environment flags doesn't help env CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib ./configure doesn't help. How can I force it to detect that library ? regards Vivek Goel _______________________________________________ nginx-devel mailing list nginx-devel@nginxby goelviek2011@gmail.com - Nginx Development
*I suggest you use the Lua module and speak to the SQLite DB through Lua's sqlite driver. *@António P. P. Almeida I don't want to rewirte my c++ code for lua. I am looking for easiest way I can integrate my C++ code with nginx. Rewriting code of communicating with sqlite will cost too much amount of time. _______________________________________________ nginx-devel mailing list nginx-devel@nginx.oby goelviek2011@gmail.com - Nginx Development
I am writing nginx module which uses sqlite to do some read operation. As sqlite read doesn't support non-blocking call(according to my knowledge). What will be best solution to integrate it with nginx. I am accepting near about 200 at the same time. One request takes near about 200 ms to process. What method will be the best implementation using nginx: 1. Increasing nginx worker process counby goelviek2011@gmail.com - Nginx Development
Hi agentzh, Thanks for detailed information. The IO operation we are doing doesn't support blocking calls. I am thinking about two approach 1. Either pre-forking multiple nginx worker(50). or 2. Moving the IO operation I am doing to thread in my module so I can user nginx event based API and having ony 2 nginx worker process. What do you suggest? Which one will be good approach ? Will having 50by goelviek2011@gmail.com - Nginx Development
Sorry just clearing my doubt. Again I have one doubt. Work I am doing in clcf->handle is a blocking io call. Now if I am running nginx with 2 worker process and function I am calling in clcf->handle takes 200 ms to generate response. So it means that I will not able to server other clients from same worker process withing 200 ms time ? If yes , How can I make it non-blocking so that I cby goelviek2011@gmail.com - Nginx Development
@Maxim and what about handler function specified by clcf->handler ? Is it also blocking ? and what about my others questions. Can I server multiple client using worker process ? regards Vivek Goel On Mon, May 7, 2012 at 8:19 PM, vivek goel <goelvivek2011@gmail.com> wrote: > I am working on http module using nginx. > I have one question. > > 1. Is function specified iby goelviek2011@gmail.com - Nginx Development
I am working on http module using nginx. I have one question. 1. Is function specified in ngx_command_t will be blocking call ? If not My module description is as follow: It does read of file which is blocking call. That I think at same time worker process can't server the same client ? The solution I am thinking is that I can do a blocking operation in one thread and call a callback tby goelviek2011@gmail.com - Nginx Development
Found the bug in my code I was not doing NGX_CONF_UNSET_UINT in create_conf function. regards Vivek Goel On Mon, May 7, 2012 at 11:59 AM, vivek goel <goelvivek2011@gmail.com> wrote: > nginx version: nginx/1.1.18 > > What is wrong in following declaration > > { ngx_string("v_max_result"), > NGX_HTTP_MAIN_CONF | NGX_HTTP_LOC_CONF|NGX_HTTP_SRV_CONF | &by goelviek2011@gmail.com - Nginx Development
nginx version: nginx/1.1.18 What is wrong in following declaration { ngx_string("v_max_result"), NGX_HTTP_MAIN_CONF | NGX_HTTP_LOC_CONF|NGX_HTTP_SRV_CONF | NGX_CONF_TAKE1, ngx_conf_set_num_slot, NGX_HTTP_LOC_CONF_OFFSET, offsetof(ngx_http_v_conf_t, max_result), NULL}, I am getting error nginx: "v_max_result" directive is duplicateby goelviek2011@gmail.com - Nginx Development
Is there any way I can specify a time-out for my http modue? So If my module is not finishing it's task in N second nginx can abort that request ? regards Vivek Goel _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-develby goelviek2011@gmail.com - Nginx Development
I forgot to mention line ngx_http_send_response Sudo Code for ProccessNginxRequest is like this ngx_str_set(&cv->value,"A BIG STRING OF LENGTH 401481") ngx_http_send_response(r, NGX_HTTP_OK, &ngx_http_json_type, cv); regards Vivek Goel On Fri, Apr 6, 2012 at 12:55 PM, vivek goel <goelvivek2011@gmail.com> wrote: > I am writing my own module. > I am getting erroby goelviek2011@gmail.com - Nginx Development
I am writing my own module. I am getting error with function ngx_http_send_response it is not sending complete buffer if buffer is big. I have following code ngx_http_complex_value_t cv; ngx_int_t rc = ProcessNginxRequest(r, &cv); ngx_http_finalize_request(r, NGX_HTTP_OK); return rc; Sudo Code for ProccessNginxRequest is like this ngx_str_set(&cv->value,"A BIG STRING OF LENGby goelviek2011@gmail.com - Nginx Development
hi, I want to put variable inside nginx NGX_MAIN_CONF I want written code like this { ngx_string("mydata"), NGX_MAIN_CONF|NGX_DIRECT_CONF|NGX_CONF_TAKE1, ngx_conf_set_str_slot, 0, offsetof(ngx_http_my_main_conf_t, my_data), NULL }, But when I put in in configuration file worker_processes 2; mydata "a"; I am getting following error nginx: unknown directiveby goelviek2011@gmail.com - Nginx Development
Hi* *Maxim Can you please tell the file name I should be looking for correct example of using ngx_http_read_client_request_body for content handler module ? regards Vivek Goel On Mon, Mar 19, 2012 at 6:03 PM, vivek goel <goelvivek2011@gmail.com> wrote: > I am writing my own module to generate contents. > I am getting random time-outs with it. > What can be the issue ? > &by goelviek2011@gmail.com - Nginx Development
I am writing my own module to generate contents. I am getting random time-outs with it. What can be the issue ? Following is the source code for my module /* * Copyright (C) Igor Sysoev * Copyright (C) Nginx, Inc. */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> typedef struct { ngx_flag_t done : 1; ngx_flag_t waiting_more_body : 1; } ngx_httby goelviek2011@gmail.com - Nginx Development
Thanks by using ngx_http_set_ctx now problem is fixed. But now I am getting strange error with post request many times I am getting request timed out or connection reset by pear. What I might be doing wrong while reading post request ? regards Vivek Goel On Fri, Mar 16, 2012 at 7:56 PM, vivek goel <goelvivek2011@gmail.com> wrote: > I was tried to create hello world module to readby goelviek2011@gmail.com - Nginx Development
/* * Copyright (C) Igor Sysoev * Copyright (C) Nginx, Inc. */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> static char *ngx_http_helloworld(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); static void ngx_http_form_input_post_read(ngx_http_request_t *r); typedef struct { ngx_flag_t done : 1; ngx_flag_t waiting_more_body : 1; } ngx_htby goelviek2011@gmail.com - Nginx Development
I was tried to create hello world module to read post request but I am getting ctx as null value on line no 112 ctx = ngx_http_get_module_ctx(r, ngx_http_helloworld_module); I am attaching the source code regards Vivek Goel On Sun, Feb 26, 2012 at 11:15 PM, vivek goel <goelvivek2011@gmail.com>wrote: > For reading get request I can use function ngx_http_form_input_arg but I >by goelviek2011@gmail.com - Nginx Development