[ANN] OpenResty 1.13.6.2 released

2018-05-16 Thread Yichun Zhang (agentzh)
Hi folks! I am happy to announce the new formal release, 1.13.6.2, of the OpenResty web platform based on NGINX and LuaJIT: https://openresty.org/en/download.html The (portable) source code distribution, the Win32/Win64 binary distributions, and the pre-built binary Linux packages for Ubuntu

[ANN] OpenResty 1.13.6.1 released

2017-11-13 Thread Yichun Zhang (agentzh)
Hi there, I am excited to announce the new formal release, 1.13.6.1, of the OpenResty web platform based on NGINX and LuaJIT: https://openresty.org/en/download.html Both the (portable) source code distribution, the Win32 binary distribution, and the pre-built binary Linux packages for all th

Re: ngx.shared.DICT serialize / deserialize

2017-11-11 Thread Yichun Zhang (agentzh)
Hello! On Thu, Nov 9, 2017 at 12:19 PM, Joel Parker wrote: > I am trying to load a table from disk (deserialize) into memory and then > add, change, remove the values in the table then write it periodically back > to disk (serialize). I looked at the documentation for the ngx.shared.DICT > (https:

[ANN] OpenResty 1.11.2.5 released

2017-08-18 Thread Yichun Zhang (agentzh)
Haiku OS. Note: this is not an officially supported target. The HTML version of the change log with lots of helpful hyper-links can be browsed here: https://openresty.org/en/changelog-1011002.html OpenResty is a full-fledged web platform by bundling the standard Nginx core, Lua/LuaJIT, lots of 3rd-party Nginx modules and Lua libraries, as well as most of their external dependencies. See OpenResty's homepage for details: https://openresty.org/ We have run extensive testing on our Amazon EC2 test cluster and ensured that all the components (including the Nginx core) play well together. The latest test report can always be found here: https://qa.openresty.org/ We also always run the latest OpenResty version in our own global CDN network (dubbed "mini CDN") powering our openresty.org and other sites. Enjoy! Best regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[ANN] OpenResty 1.11.2.4 released (and new Linux package repositories)

2017-07-11 Thread Yichun Zhang (agentzh)
as well as most of their external dependencies. See OpenResty's homepage for details: https://openresty.org/ OpenResty is supported by the OpenResty Software Foundation, OpenResty Inc., and the global community. Thanks! -agentzh ___ nginx mai

[ANN] OpenResty 1.11.2.3 released

2017-04-21 Thread Yichun Zhang (agentzh)
Hi folks, Long time no releases. We've been very busy setting up the OpenResty Inc. commercial company in the US. That's why we've been quiet in the last few months. The good news is that we now have a strong full-time engineering team that can work on both the OpenResty open source platform and h

[ANN] OpenResty 1.11.2.2 released

2016-11-17 Thread Yichun Zhang (agentzh)
log with lots of helpful hyper-links can be browsed here: https://openresty.org/en/changelog-1011002.html OpenResty is a full-fledged web platform by bundling the standard Nginx core, Lua/LuaJIT, lots of 3rd-party Nginx modules and Lua libraries, as well as most of their external dependencies. See OpenResty's homepage for details: https://openresty.org/ We have run extensive testing on our Amazon EC2 test cluster and ensured that all the components (including the Nginx core) play well together. The latest test report can always be found here: https://qa.openresty.org/ Enjoy! -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[ANN] OpenResty 1.11.2.1 released

2016-08-25 Thread Yichun Zhang (agentzh)
r external dependencies. See OpenResty's homepage for details: https://openresty.org/ We have run extensive testing on our Amazon EC2 test cluster and ensured that all the components (including the Nginx core) play well together. The latest test report can always be found here: https://qa.openresty.org/ Have fun! -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: SNI support for nginx

2016-07-06 Thread Yichun Zhang (agentzh)
ithub.com/openresty/lua-nginx-module/#ssl_certificate_by_lua_block https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/ssl.md#readme Even dynamic OCSP stapling is supported ;) The easiest way to get everything setup is to use the OpenResty bundle BTW: http://openresty.org/en

[ANN] OpenResty 1.9.15.1 released

2016-06-03 Thread Yichun Zhang (agentzh)
* bugfix: fixed errors and warnings with C compilers without variadic macro support. * upgraded ngx_iconv to 0.14. * feature: this module can now be compiled as a dynamic module with NGINX 1.9.11+ via the "--with-dynamic-module=PATH" option of "

[ANN] OpenResty 1.9.7.5 released

2016-05-31 Thread Yichun Zhang (agentzh)
a full-fledged web platform by bundling the standard Nginx core, Lua/LuaJIT, lots of 3rd-party Nginx modules and Lua libraries, as well as most of their external dependencies. See OpenResty's homepage for details: https://openresty.org/ Best regards, -ag

Re: Video & Slides for our first Bay Area OpenResty Meetup

2016-04-29 Thread Yichun Zhang (agentzh)
ck You can fork it yourself if you want to :) Also, you may find the following Lua library for balancer_by_lua* too: https://github.com/agentzh/lua-resty-chash > Basicly I'm interested in more flexible/configurable upstream server > healthchecks (than what's available in stock

Video & Slides for our first Bay Area OpenResty Meetup

2016-04-28 Thread Yichun Zhang (agentzh)
thanks Ming Wen for the editing work of our video recordings. We can definitely do more of such meetups in the future :) OpenResty is a high performance web platform based on NGINX and LuaJIT: https://openresty.org/ Best regards, -agentzh [

[ANN] OpenResty 1.9.7.4 released

2016-03-19 Thread Yichun Zhang (agentzh)
hange log with lots of helpful hyper-links can be browsed here: https://openresty.org/#ChangeLog1009007 OpenResty (aka. ngx_openresty) is a full-fledged web platform by bundling the standard Nginx core, Lua/LuaJIT, lots of 3rd-party Nginx modules and Lua libraries, as well as most of the

Reminder: The 1st Bay Area OpenResty Meetup Tomorrow Evening

2016-03-08 Thread Yichun Zhang (agentzh)
inx modules, and most of their external dependencies. It is designed to help developers easily build scalable web applications, web services, and dynamic web gateways. You can find more about OpenResty on its official web site: https://openresty.org/ See you tomorrow!

Re: i'm getting following error when compiling nginx 1.8.1

2016-02-11 Thread Yichun Zhang (agentzh)
mbuild/SOURCES/modules/nginx_tcp_proxy_module-master/ngx_tcp_session.c:351: > error: 'NGX_LOG_DEBUG_TCP' undeclared (first use in this function) Maybe you should just use the official ngx_stream_proxy_module in NGINX 1.9.x? http://nginx.org/en/docs/stream/ngx_stream_proxy_

[ANN] SF Bay Area OpenResty Meetup

2016-02-03 Thread Yichun Zhang (agentzh)
en to everyone interested in OpenResty, NGINX, and/or Lua/LuaJIT. We'll have a screen, a microphone, and some food and beverage as well. If it goes well, we can do it every couple of months :) Any updates about this meetup will be published on the group page given above. See you

Re: echo-nginx-module and HTTP2

2016-02-01 Thread Yichun Zhang (agentzh)
ginx). > This is expected since the HTTP/2 mode of NGINX reads the request header into a different place. We should branch the code accordingly. Regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: echo-nginx-module and HTTP2

2016-01-29 Thread Yichun Zhang (agentzh)
Hello! On Thu, Jan 28, 2016 at 11:19 PM, A. Schulze wrote: > I could not support with patches but would do some beta testing. > Thanks. > Just to have ask: > disabling http2 for a location is not possible, isn't it? > Nope

[ANN] OpenResty 1.9.7.3 released

2016-01-28 Thread Yichun Zhang (agentzh)
-2016-0746, and CVE-2016-0747. See <http://mailman.nginx.org/pipermail/nginx/2016-January/049700.html> for more details. * change: renamed the source distribution name from "ngx_openresty" to just "openresty". Best regards, -agentzh __

Re: echo-nginx-module and HTTP2

2016-01-28 Thread Yichun Zhang (agentzh)
ainer, I've never tested it anyway). Patches welcome and volunteers welcome :) Best regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: load balancer on nginx : how to monitoring backend ?

2016-01-27 Thread Yichun Zhang (agentzh)
ier to install via the OpenResty bundle though: https://openresty.org/ Regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Is ngx_http_perl_module stable enough to use in high traffic production environment?

2016-01-23 Thread Yichun Zhang (agentzh)
code runnable atop the ngx_http_lua_module. Hope it helps. Best regards, -agentzh [1] https://metacpan.org/pod/Test::Nginx [2] https://metacpan.org/pod/Lemplate ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[ANN] OpenResty 1.9.7.2 released

2016-01-21 Thread Yichun Zhang (agentzh)
ll the components (including the Nginx core) play well together. The latest test report can always be found here: https://qa.openresty.org Enjoy! -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[ANN] OpenResty 1.9.7.1 released

2015-12-24 Thread Yichun Zhang (agentzh)
d Lua libraries, as well as most of their external dependencies. See OpenResty's homepage for details: https://openresty.org/ We have run extensive testing on our Amazon EC2 test cluster and ensured that all the components (including the Nginx core) play well together. The latest t

Re: Forward request after operation with worker?

2015-11-25 Thread Yichun Zhang (agentzh)
esty specific questions. Please see https://openresty.org/#Community Thanks! Best regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[ANN] OpenResty 1.9.3.2 released

2015-11-23 Thread Yichun Zhang (agentzh)
* ARM64: fix ELF bytecode saving. * feature: parse Unicode string escape "\u{XX...}". * FFI: add "ssize_t" declaration. * fix unsinking check. * feature: add "collectgarbage("isrunning")". * flush symbol tables in "jit.dump" on trace flush. The HTML version of the change log with lots of helpful hyper-links can be browsed here: https://openresty.org/#ChangeLog1009003 OpenResty (aka. ngx_openresty) is a full-fledged web platform by bundling the standard Nginx core, Lua/LuaJIT, lots of 3rd-party Nginx modules and Lua libraries, as well as most of their external dependencies. See OpenResty's homepage for details: https://openresty.org/ We have run extensive testing on our Amazon EC2 test cluster and ensured that all the components (including the Nginx core) play well together. The latest test report can always be found here: http://qa.openresty.org Have fun! -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[ANN] OpenResty 1.9.3.1 released

2015-08-12 Thread Yichun Zhang (agentzh)
ve testing on our Amazon EC2 test cluster and ensured that all the components (including the Nginx core) play well together. The latest test report can always be found here: http://qa.openresty.org Enjoy! -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Configure core Python scripts into Nginx

2015-08-06 Thread Yichun Zhang (agentzh)
ible here such that other more knowledgeable people might have a chance to help you out. Well, just a suggestion. Regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Configure core Python scripts into Nginx

2015-08-05 Thread Yichun Zhang (agentzh)
on in your apps, then you should try those fastcgi or uwsgi options instead. Just my 2 cents. Regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[ANN] OpenResty 1.7.10.2 released

2015-07-03 Thread Yichun Zhang (agentzh)
The next formal release of OpenResty will be based on the new Nginx 1.9.x core. OpenResty (aka. ngx_openresty) is a full-fledged web application server by bundling the standard Nginx core, Lua/LuaJIT, lots of 3rd-party Nginx modules and Lua libraries, as well as most of their external dependencies. See OpenResty's homepage for details: http://openresty.org/ We have run extensive testing on our Amazon EC2 test cluster and ensured that all the components (including the Nginx core) play well together. The latest test report can always be found here: http://qa.openresty.org Have fun! Best regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx LUA

2015-06-13 Thread Yichun Zhang (agentzh)
something. Not sure if there's a ready-to-use 3rd-party Lua libraries that can already parse that for you. BTW, you're recommended to post ngx_lua related questions to the openresty-en mailing list instead. Please see https://openresty.org/#Community for mo

[ANN] OpenResty 1.7.10.1 released

2015-03-01 Thread Yichun Zhang (agentzh)
sured that all the components (including the Nginx core) play well together. The latest test report can always be found here: http://qa.openresty.org And we have always been running the latest OpenResty in CloudFlare's global CDN network. Have fun! Best regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: [ANN] OpenResty 1.7.7.2 released

2015-02-05 Thread Yichun Zhang (agentzh)
hich can be enabled by the user by specifying the --with-luajit-xcflags='-DLUAJIT_ENABLE_LUA52COMPAT' ./configure option while building OpenResty. Regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[ANN] OpenResty 1.7.7.2 released

2015-02-04 Thread Yichun Zhang (agentzh)
homepage for details: http://openresty.org/ We have run extensive testing on our Amazon EC2 test cluster and ensured that all the components (including the Nginx core) play well together. The latest test report can always be found here: http://qa.openresty.org And we have always been running the latest OpenResty in CloudFlare's global CDN network for years. Enjoy! -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: resolver directive doesn't fallback to the system DNS resolver

2015-01-12 Thread Yichun Zhang (agentzh)
no good. I was talking about extracing nameserver addresses automatically from /etc/resolv.conf (or similar places in other exotic operating systems) and feed them into nginx's current nonblocking resolver. And yes, for now, the latter workaround should be the simpl

Re: resolver directive doesn't fallback to the system DNS resolver

2015-01-07 Thread Yichun Zhang (agentzh)
garding the error message "no resolver defined to resolve ..." over the years. Alas. Regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[ANN] OpenResty 1.7.7.1 released

2014-12-06 Thread Yichun Zhang (agentzh)
penresty.org/ We have run extensive testing on our Amazon EC2 test cluster and ensured that all the components (including the Nginx core) play well together. The latest test report can always be found here: http://qa.openresty.org Enjoy! -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: NGINX module reporting 0 time to access.log

2014-12-02 Thread Yichun Zhang (agentzh)
r nginx's performance to Apache's worker mpm.) Regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx + lua-nginx, get ssl_session_id

2014-11-28 Thread Yichun Zhang (agentzh)
ling session tickets to force sessions IDs is a complete loss. The session tickets are almost always preferred. > P.S.S. I've used this mail-listing, because it's not Lua-related problem. > The openresty-en mailing list is not a Lua-specific list :) Regards, -agentzh _

Re: NGINX using 100% of the server CPU when testing with Blitz.io

2014-11-26 Thread Yichun Zhang (agentzh)
olve with the right tools. For example, the on-CPU flame graph tool like this: https://github.com/openresty/nginx-systemtap-toolkit#sample-bt Linux's "perf top" can be useful here as well. Well, just FYI :) Regards, -agentzh ___

Re: Nginx + lua-nginx, get ssl_session_id

2014-11-26 Thread Yichun Zhang (agentzh)
more effective (and cheaper) than SSL session IDs (if available). BTW, for such ngx_lua questions, please post to the openresty-en mailing list in the future instead. See http://openresty.org/#Community for details. That way you may get responses faster and get more respons

Re: Rate-limiting across connections

2014-11-14 Thread Yichun Zhang (agentzh)
imit_rate builtin variable. You can not only limit on a per-server basis (across worker processes) but also limit on a cluster-level (across machines). It's all up to you. Thanks to the flexibility of Lua. Regards, -agentzh [1] https://github.com/open

Re: HttpLuaModule create asynchronous subrequests

2014-11-14 Thread Yichun Zhang (agentzh)
ot in use and you use ngx.eof), your dev upstream connection will also be aborted prematurely. Regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: HttpLuaModule create asynchronous subrequests

2014-11-13 Thread Yichun Zhang (agentzh)
recommended to join the openresty-en mailing list [3] for such ngx_lua related questions that way you may get more responses and get responses sooner. For your very use case, maybe lower level tools like tcpcopy [4] is a better fit? Not sure though :) Regards, -agentzh [1] https://github.com/b

Re: ngx.shared.dict - locking mechanism ?

2014-11-12 Thread Yichun Zhang (agentzh)
my use case. > It uses the lock mechanism provided by the nginx core to ensure atomicity and consistency. Basically it uses spinlocks to try first, failing that, falling back to semaphores. Regards, -agentzh ___ nginx mailing list nginx

[ANN] OpenResty 1.7.4.1 released

2014-10-09 Thread Yichun Zhang (agentzh)
at overwrites the existing "cjson.so" file in place which could cause already running processes with this ".so" file loaded to crash. thanks ywsample for the report. The HTML version of the change log with lots of helpful hyper-links can be browsed h

Re: Worker processes not shutting down

2014-09-23 Thread Yichun Zhang (agentzh)
Hello! On Fri, Sep 19, 2014 at 12:50 PM, igorhmm wrote: > I don't known how to reproduce, not yet :-) > > I couldn't identify which worker was responding too, but I can see with > strace warnings in the old wolker about EAGAIN (Resource temporarily > unavailable). I can see that because old worker

Re: using location.capture to post a form

2014-09-18 Thread Yichun Zhang (agentzh)
r size is less than 81568 characters. When > the parameter size is greater than 81568, we get error 502. > Apparently you're hitting the URL length limit on your backend server. BTW, it's better to post such questions to the openresty-en mailing list instead:

Re: using location.capture to post a form

2014-09-16 Thread Yichun Zhang (agentzh)
subrequest because your "receiving application" might require that. Regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: How to call redis2-nginx-module or any other module from another module

2014-08-12 Thread Yichun Zhang (agentzh)
he former should be on the latter as well. Thank you for your cooperation. Best regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: [ANN] Windows nginx 1.7.4.2 WhiteRabbit

2014-08-01 Thread Yichun Zhang (agentzh)
Hello! On Fri, Aug 1, 2014 at 2:18 PM, Yichun Zhang (agentzh) wrote: > > You can try this: https://github.com/juce/lua-resty-shell > But for expensive image compression involved with relatively large data volumn and CPU computation, it is better to be done in a dedicated daemon proces

Re: [ANN] Windows nginx 1.7.4.2 WhiteRabbit

2014-08-01 Thread Yichun Zhang (agentzh)
Hello! On Fri, Aug 1, 2014 at 5:03 AM, c0nw0nk wrote: > Does anyone know a way you can execute a program via the echo module or > another way with the lua module ? > You can try this: https://github.com/juce/lua-resty-shell Regards,

Re: [ANN] Windows nginx 1.7.4.2 WhiteRabbit

2014-07-31 Thread Yichun Zhang (agentzh)
gt; Oh no, os.execute() is blocking. You should avoid that whenever possible :) Regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Support for 3rd party zlib libraries

2014-07-29 Thread Yichun Zhang (agentzh)
Hello! On Tue, Jul 29, 2014 at 4:09 PM, Piotr Sikora wrote: > > Just to make this clear, the zlib library that Richard is referring to > is a fork of standard zlib (like ours), not IPP zlib. > Okay, I see. Thank you for pointing that out :) Regar

Re: Support for 3rd party zlib libraries

2014-07-29 Thread Yichun Zhang (agentzh)
Hello! On Tue, Jul 29, 2014 at 3:47 PM, Richard Stanway wrote: > Thank you for the patch. This solves the issue with streamed responses, > however when the "if (r->headers_out.content_length_n > 0)" branch is taken, > eg with static content, I still receive the 2nd alert type below. Oh, we should

Re: Support for 3rd party zlib libraries

2014-07-29 Thread Yichun Zhang (agentzh)
Hello! On Tue, Jul 29, 2014 at 1:46 PM, Richard Stanway wrote: > I recently came across a modified version of zlib with code contributed by > Intel [1] that makes use of modern CPU instructions to increase performance. > In testing, the performance gains seemed substantial, however when I tried >

[ANN] OpenResty 1.7.2.1 released

2014-07-12 Thread Yichun Zhang (agentzh)
A_ABORT_AT_PANIC" to the the ngx_lua module build. The HTML version of the change log with lots of helpful hyper-links can be browsed here: http://openresty.org/#ChangeLog1007002 OpenResty (aka. ngx_openresty) is a full-fledged web application server by

Re: Send all requests to two separate upstream servers?

2014-06-17 Thread Yichun Zhang (agentzh)
ad, which > is just incoming data. > Sounds like a perfect use case for the tcpcopy tool: https://github.com/wangbin579/tcpcopy Best regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[ANN] OpenResty 1.7.0.1 released

2014-06-07 Thread Yichun Zhang (agentzh)
s, as well as most of their external dependencies. See OpenResty's homepage for details: http://openresty.org/ We have run extensive testing on our Amazon EC2 test cluster and ensured that all the components (including the Nginx core) play well together. The latest test report can always be

Re: nginx rewrites $request_method on error

2014-05-19 Thread Yichun Zhang (agentzh)
ed. That's cool. Looking forward to that. Regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Memcached

2014-05-17 Thread Yichun Zhang (agentzh)
es" statement. The standard ngx_memcached module only supports the memcached "get" command while ngx_memc supports way more commands like "set", "add", "replace", "append", "prepend", "delete", "incr", "decr&qu

Re: Memcached

2014-05-16 Thread Yichun Zhang (agentzh)
, and etc) on my Amazon EC2 test cluster for long: http://qa.openresty.org This module is also well supported on the openresty-en mailing list: https://groups.google.com/group/openresty-en Regards, -agentzh ___ nginx mailing list nginx@nginx.org http://ma

Re: Directly redirecting prefix location to named one

2014-05-16 Thread Yichun Zhang (agentzh)
ence here. OpenResty bundles this ngx_echo module directly. Regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx rewrites $request_method on error

2014-05-16 Thread Yichun Zhang (agentzh)
the request processing lifetime (like when processing the request header). Because it should be done in the nginx core, and I can do very little on my 3rd-party modules side about this. Maxim Dounin: what is your opinion on this? Best regards, -agentzh __

Re: nginx rewrites $request_method on error

2014-05-15 Thread Yichun Zhang (agentzh)
loop. Regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx rewrites $request_method on error

2014-05-14 Thread Yichun Zhang (agentzh)
. try to enable the nginx debugging logs for more details for your problematic request: http://nginx.org/en/docs/debugging_log.html If you do not understand the debugging logs, you can put it somewhere on the web (like GitHub Gist) and provide the link here. Regards, -agentzh _

Re: nginx rewrites $request_method on error

2014-05-08 Thread Yichun Zhang (agentzh)
commended to use the rewrite_by_lua directive directly in the server {} block." and the reason follows that. The same statement also applies to access_by_lua. Also, please read the full text of my previous email and correct all the things I listed

Re: nginx rewrites $request_method on error

2014-05-07 Thread Yichun Zhang (agentzh)
plicate responses for the same request. Another suggestion is to check out your nginx error logs for hints (if any). If the existing info is not enough, you can further enable nginx's debugging logs: http://nginx.org/en/docs/debugging_log.html Finally

Re: nginx rewrites $request_method on error

2014-05-06 Thread Yichun Zhang (agentzh)
ACE and nginx gets GET. > Will you elaborate your problem and use case? Preferably with a minimal but still complete example to demonstrate your intention and problem. As the author of the ngx_memc module, I'd like to have to look (and find a solution for

[ANN] OpenResty 1.5.12.1 released

2014-04-29 Thread Yichun Zhang (agentzh)
always be found here: http://qa.openresty.org Just a side note: I recently added the "Profiling page" to the openresty.org site where you can find useful Flame Graph tools for analyzing and optimizing OpenResty web apps' online performance (as well as o

Re: problem with echo_before when proxying a server which sends gzipped content

2014-04-29 Thread Yichun Zhang (agentzh)
thor of both the ngx_echo and ngx_xss modules, I'd recommend ngx_xss module for your JSONP use case: https://github.com/openresty/xss-nginx-module#readme It should be a bit faster and also safer for this very case. Regards, -agentzh ___ ng

[ANN] OpenResty 1.5.11.1 released

2014-03-30 Thread Yichun Zhang (agentzh)
failures at least in recent Mac OS X systems. thanks Hamish Forbes for the report. * feature: bundled new component LuaRestyUpstreamHealthcheckLibrary 0.01. * see the documentation for details: https://github.com/agentzh/lua-resty-upstream-healthcheck#re adme

Re: Nginx postgres problem

2014-03-05 Thread Yichun Zhang (agentzh)
attempt to call ngx.exec after sending > out response headers The error clearly indicates the problem. You should not send the response header before doing redirects (note that, ngx.say, ngx.print, ngx.flush all trigger sending out the response header automatically, so avoid them). Regards

Re: Worker dies with a segfault error

2014-03-05 Thread Yichun Zhang (agentzh)
ua? If you still can, please post the details (bt full ouptuts in gdb, for example) to the openresty-en mailing list instead: https://groups.google.com/group/openresty-en Both ngx_lua and ngx_postgres are supported modules in the OpenResty bundle so you're welcome to ask there.

Re: Nginx postgres problem

2014-03-05 Thread Yichun Zhang (agentzh)
that lead to weird issues that are extremely hard to debug. Just share the NGINX variables you want to share. Best regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx postgres problem

2014-03-05 Thread Yichun Zhang (agentzh)
lawful/lua-nginx-module#ngxredirect https://github.com/chaoslawful/lua-nginx-module#ngxexec Speaking of running order, I suggest you read my NGINX tutorials to prevent such confusions: http://openresty.org/download/agentzh-nginx-tutorials-en.html BTW, you're recommended to join the open

Re: High CPU Usage and NGINX Hangup

2014-03-04 Thread Yichun Zhang (agentzh)
deal if you can take a C-land on-CPU flame graph for your worker processes spining at 100% CPU time, which will give the whole picture about how CPU time is distributed among all the code paths: https://github.com/agentzh/nginx-systemtap-toolkit#sample-bt We've been using this to analyse

Re: Nginx postgres problem

2014-03-04 Thread Yichun Zhang (agentzh)
ite_by_lua to inject some Lua code and use ngx.location.capture to issue a subrequest to your postgres location. Regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: 100% CPU nginx master process

2014-03-02 Thread Yichun Zhang (agentzh)
with high CPU usage by sampling for a few or a dozen seconds: https://github.com/agentzh/nginx-systemtap-toolkit#sample-bt The graph would tell us the complete story about all the hot spots during the sampling window. Regards, -agentzh ___ nginx mai

Re: Best possible configuration for file upload

2014-02-28 Thread Yichun Zhang (agentzh)
s sounds like a good analysis candidate for the off-CPU flame graph tool: https://github.com/agentzh/nginx-systemtap-toolkit#sample-bt-off-cpu This can help us identify exactly what the bottleneck is in your nginx. Also, measuring the epoll loop blocking latency distribution could be insi

Re: newbie help - unknown directive memc_pass

2014-02-23 Thread Yichun Zhang (agentzh)
following sample for more details: http://openresty.org/#GettingStarted Regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Mmm.. Subrequests anyone ?

2014-02-13 Thread Yichun Zhang (agentzh)
Hello! On Thu, Feb 13, 2014 at 7:50 AM, Reinis Rozitis wrote: >> Does it enables to request fileA and be able to get fileA + fileB + file C >> ? >> Any code example (even the most basic) ? > > https://github.com/agentzh/echo-nginx-module#readme > http://wiki.nginx.org/

Re: [Lua] "Hello, world!" from Lua file?

2014-01-28 Thread Yichun Zhang (agentzh)
cated location (say, location = /post) for the POST/GET target of your HTML form. Regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: [Lua] "Hello, world!" from Lua file?

2014-01-27 Thread Yichun Zhang (agentzh)
content_by_lua ' ngx.header["Content-Type"] = "text/plain" ngx.say("hello world") '; or use the default_type directive: default_type text/plain; content_by_lua ' ngx.say("hello world") '; Regards, -agentz

Re: [OpenResty] How to start Nginx?

2014-01-24 Thread Yichun Zhang (agentzh)
7;s header to locate dynamic libraries (like the libluajit-5.1.so.2 file). Regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[ANN] ngx_openresty mainline version 1.5.8.1 released

2014-01-10 Thread Yichun Zhang (agentzh)
full-fledged web application server by bundling the standard Nginx core, lots of 3rd-party Nginx modules and Lua libraries, as well as most of their external dependencies. See OpenResty's homepage for details: http://openresty.org/ We have run extens

Re: Nginx, Lua and blocking libraries

2014-01-09 Thread Yichun Zhang (agentzh)
(We actually have systemtap-based tools to measure the epoll loop blocking effect: https://github.com/agentzh/stapxx#epoll-loop-blocking-distr and the off-CPU flamegraph tool is very useful for determining the contributors: https://github.com/agentzh/nginx-systemtap-toolkit#sample-bt-off-cpu ). Basic

Re: agentzh's encrypted session module

2014-01-06 Thread Yichun Zhang (agentzh)
Hello! On Sat, Jan 4, 2014 at 11:59 PM, Jeffrey Walton wrote: > I've been studying agentzh's encrypted session module from > https://github.com/agentzh/encrypted-session-nginx-module/tree/master/src. > Thank you for checking it out! :) > > The problem I am having is:

Re: dynamic rate limiting per ip

2014-01-06 Thread Yichun Zhang (agentzh)
cking other requests served by the same nginx worker. Regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Parallel subrequests

2013-12-25 Thread Yichun Zhang (agentzh)
; > sr->method_name = r->method_name; > ??? > Yeah, you can do something like that. My Nginx modules ngx_echo, ngx_srcache, and ngx_lua all support custom method names in their subrequests. See https://github.com/agentzh/echo-nginx-module#echo_subrequest_async https

Re: [ANN] ngx_openresty mainline version 1.4.3.7 released

2013-12-14 Thread Yichun Zhang (agentzh)
Hello! On Sat, Dec 14, 2013 at 4:42 PM, Yichun Zhang (agentzh) wrote: > I am happy to announce that the new mainline version of ngx_openresty, > 1.4.3.7, is now released: > http://openresty.org/#Download > I just kicked out the ngx_openresty 1.4.3.9 release, including an emer

[ANN] ngx_openresty mainline version 1.4.3.7 released

2013-12-14 Thread Yichun Zhang (agentzh)
detailed information from the JIT compiler. Below is the complete change log for this release, as compared to the last (stable) release, 1.4.3.6: * upgraded LuaJIT to v2.1-20131211. * see changes here: https://github.com/agentzh/luajit2/commits/v2.1-agentzh * bundled LuaRestyCoreLi

Re: Nginx Deployments in Practice

2013-12-11 Thread Yichun Zhang (agentzh)
for the cooperation. Best regards, -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: [openresty-en] Re: [ANN] ngx_openresty stable version 1.4.3.6 released

2013-11-22 Thread Yichun Zhang (agentzh)
Hello! On Fri, Nov 22, 2013 at 10:07 AM, Roberto Ostinelli wrote: > can I ask you why the 'stable' version is more recent than the 'mainline' > one? > Because the new mainline version of openresty is not ready to release atm :) It's expected to be

[ANN] ngx_openresty stable version 1.4.3.6 released

2013-11-20 Thread Yichun Zhang (agentzh)
Hello! I just released a new stable version for ngx_openresty, 1.4.3.6, which includes the latest official fix for the security issue CVE-2013-4547 in the Nginx core: http://openresty.org/#Download Best regards, -agentzh ___ nginx mailing list

[ANN] ngx_openresty stable version 1.4.3.4 released

2013-11-12 Thread Yichun Zhang (agentzh)
* set-misc-nginx-module-0.22 * srcache-nginx-module-0.24 * xss-nginx-module-0.04 Just a quick heads-up: I've been working on the LuaJIT 2.1 support and the new FFI-based API for ngx_lua, which is in the form of the lua-resty-core library: https://github.com/agentzh/lua-resty-core

[ANN] ngx_openresty mainline version 1.4.3.3 released

2013-11-06 Thread Yichun Zhang (agentzh)
he Nginx core) play well together. The latest test report can always be found here: http://qa.openresty.org Have fun! -agentzh ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Hi, agentzh, the chunkin-nginx-module is not compatible with nginx 1.5.x

2013-10-30 Thread Yichun Zhang (agentzh)
ot;This module is no longer needed for Nginx 1.3.9+ because since 1.3.9, the Nginx core already has built-in support for the chunked request bodies." See also https://github.com/agentzh/chunkin-nginx-module#status Best regards, -agentzh ___ nginx m

[ANN] ngx_openresty mainline version 1.4.3.1 released

2013-10-29 Thread Yichun Zhang (agentzh)
ersion of the change log with lots of helpful hyper-links can be browsed here: http://openresty.org/#ChangeLog1004003 OpenResty (aka. ngx_openresty) is a full-fledged web application server by bundling the standard Nginx core, lots of 3rd-party Nginx modules and

  1   2   >