Open nguyenbatam opened 9 years ago
You've run into the same issue mentioned in the README. Posted here again for reference: https://github.com/openresty/lua-nginx-module/issues/415 .
The work around implemented in the README is to use a proxy location like proxy_pass http://127.0.0.1:9090/zmq;
If you wanted to then capture that location via ngx.location.capture
you could. (Meaning you need a third location that does content_by_lua
)
The work around suggested by agentzh in the issue thread is to instead use one of the other libraries for url capturing, such as https://github.com/pintsized/lua-resty-http. I haven't verified that this will also solve your problem, but it is likely
When I try response a small data through zmq location, I can receive data But when I try receive a large data (~2M) . I can't receive response .
I try write this to nginx's conf but it's still dont work :( . I work with zmq location proxy_max_temp_file_size 0; proxy_buffers 8 32k;
I receive header but canot receive all data {null=[HTTP/1.1 200 OK], Server=[openresty/1.9.3.1], Connection=[keep-alive], Content-Length=[17000], Date=[Wed, 30 Sep 2015 04:18:43 GMT], Content-Type=[text/plain]}
Can you give me a advice ?
Sorry, I don't have any experience with this issue and I'm not sure on a possible fix
If you increase proxy_max_temp_file
or disable proxy_buffering
with off, it should work.
I recently blogged about this issue at https://dracoblue.net/dev/hanging-subrequests-in-nginx/
Hi Nathan Eloe , I'm a student .Can you help me about this problem ? I using nginx version 1.9.3 and your's lib about ZMQ (https://github.com/neloe/ngx_zmq) but I have error : nginx don't response data I know your's lib run very well.
This is my config in nginx
And this is my log when i acess test location :
If I acess zmq location , it's run very well , I receive reponse But when i acess test location , I don't receive reponse Thank for your help !