Re: Parallel subrequests

2014-04-09 Thread honwel
how to write a filter module after the postpone filter . if i change module's config file or complie file (auto/) ? any example? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245707,249183#msg-249183 ___ nginx mailing list nginx@nginx.org

Help, make a post subrequest with response body from parent

2014-04-08 Thread honwel
hi, angentzh I use echo module(angentzh) to issue a subrequest(POST method) that it's body from parent's request body, and i add some code in ngx_http_echo_subrequest->ngx_http_echo_parse_subrequest_spec : so, it's not work, but change to '-b' or '-f', it's OK. help ? ...

Re: Parallel subrequests

2013-12-26 Thread honwel
Excepting response: "John abc" Not Response1:"John" Response2:"abc" Thanks for your patience! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245707,245864#msg-245864 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/l

Re: Parallel subrequests

2013-12-26 Thread honwel
Yes,you are right. But I want combine the data like: Subrequst1's response: "first name: John" Subrequst2's response: "last name: abc" Excepting response: "John abc" Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245707,245860#msg-245860 __

Re: Parallel subrequests

2013-12-26 Thread honwel
hi, agentzh There is also a problem that how can hold the one subrequest's response meanwhile waiting others(subrequest) comes, then combine the all response(data) and send it to client? is it possible? thanks a lot! Best regards, honwel Posted at Nginx Forum: http://forum.ngin

Re: Parallel subrequests

2013-12-25 Thread honwel
ok, thanks. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245707,245835#msg-245835 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Parallel subrequests

2013-12-24 Thread honwel
= r->http_version; ... sr->method_name = r->method_name; ??? thanks a lot! best regards honwel Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245707,245819#msg-245819 ___ nginx mailing list nginx@nginx.org http:

Re: Parallel subrequests

2013-12-19 Thread honwel
Ok,thanks a lot,I will try. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245707,245726#msg-245726 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Parallel subrequests

2013-12-18 Thread honwel
eds to return to its other work while it waits for a response. So we need to check the return value of ngx_http_subrequest" How to write a Parallel subrequests which several subrequests by POST in parallel rather than one by one after received preivous response ? thanks. best regards honw

How can i get ip and port under forward proxy

2013-06-05 Thread honwel
Hi, there I want to get ip and port under forward proxy use NGINX, a forward proxy sketch like this: [Client ]-> [NGINX] -> [Internet] so i want to get proxy's ip and port . i have try and made some modifications to the source code including ngx_http_upstream.c ngx_event_connect.c , there

Re: [ANN] ngx_openresty devel version 1.2.7.3 released

2013-03-25 Thread honwel
good news ! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237732,237779#msg-237779 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx: worker process: malloc(): memory corruption: 0x0000000000b6bdb0 ***

2013-03-25 Thread honwel
i use valgrind to check memory leak, and have detected some error: ==2243== Invalid write of size 1 ==2243==at 0x4A08088: memcpy (mc_replace_strmem.c:628) ==2243==by 0x4448C9: ngx_http_proxy_subs_headers (ngx_http_proxy_subs_filter.c:149) ==2243==by 0x45B2FB: ngx_http_proxy_create_requ

Re: nginx: worker process: malloc(): memory corruption: 0x0000000000b6bdb0 ***

2013-03-15 Thread honwel
thanks, i will try as you mention and report it on forum. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237393,237397#msg-237397 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

nginx: worker process: malloc(): memory corruption: 0x0000000000b6bdb0 ***

2013-03-15 Thread honwel
hi on centos 6, nginx-1.2.2, nginx was compiled with: --prefix=/usr/local/nginx --user=root --group=root --with-http_ssl_module --with-ipv6 --with-pcre=/home/nginx/src/pcre-8.20 --with-openssl=/home/nginx/src/openssl-1.0.1c --with-zlib=/home/nginx/src/zlib-1.2.7 --add-module=/home/nginx/svn/ngi