I've just uploaded Test::Nginx 0.16 to CPAN:
It will appear on the CPAN mirror near you in the next few hours or so.
This Perl module provides a test scaffold based on non-blocking
IO::Socket or LWP for automated testing in Nginx C module development.
This class inherits from Test::Base, thus bringing all its declarative
power to the Nginx C module testing practices.
Please check out the full documentation on CPAN:
All of our Nginx modules are using Test::Nginx to drive their test suites.
Please note that this is different from the Test::Nginx module used by
Antoine BONAVITA and Piotr Sikora have contributed a lot to this
project. Special thanks go to them :)
Here's the complete change log for this release:
* fixed a bug that length(undef) produced lots of warnings on perl
5.10.x. thanks Guo Ying (shrimp).
* now we automatically retry connecting for 3 times (1 sec delay) in
Test::Nginx::Socket::send_request. this will help automatically
recovering from random slow valgrind loading problems.
* when the directories specified in --- user_files do not exist,
Test::Nginx will create it automatically.
* now we'll issue warning when there is extra bytes after the last
chunk in the chunked response parser.
I am new to here.
My question is: can subrequest be used in a handler?
I saw many module are using subrequest in filter, so I was wondered.
I want to developer a module which will get many picture files from backend
in parallel and combind them to one picture file and output it to browser.
Now I want to use subquest to achive it. Is that a right way?
Maybe shall I use ngx_peer_connection_t?