~ubuntu-branches/ubuntu/saucy/nginx/saucy-updates

« back to all changes in this revision

Viewing changes to debian/modules/nginx-lua/t/027-multi-capture.t

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry, Kartik Mistry, Cyril Lavier, Michael Lustfield
  • Date: 2012-12-18 10:29:18 UTC
  • mfrom: (4.2.56 sid)
  • Revision ID: package-import@ubuntu.com-20121218102918-dxtwj9vj89sbj8dz
Tags: 1.2.6-1
[ Kartik Mistry ]
* New upstream release.
* debian/nginx-common.nginx.init:
  + Used log_*_msg instead of echo for better init messages.
  + Added patch to check start-stop-daemon exit status, Thanks to
    Sergey B Kirpichev <skirpichev@gmail.com> (Closes: #695374).
* debian/po/ja.po:
  + Added new Japanese translation. Thanks to victory <victory.deb@gmail.com>
    (Closes: #692481).
* debian/po/pt_BR.po:
  + Added new Brazilian Portuguese translation. Thanks to
    Adriano Rafael Gomes <adrianorg@gmail.com> (Closes: #692481).

[ Cyril Lavier ]
* debian/rules
  + Added RealIP module in nginx-naxsi (Closes: #693302).
* debian/modules/nginx-cache-purge/
  + Updated nginx-cache-purge module with the 2.0 version.
* debian/modules/nginx-lua/
  + Updated nginx-lua module with the 0.7.8 version.
* debian/modules/nginx-echo/
  + Updated the nginx-echo module with the 0.41 version.
* debian/modules/headers-more-nginx-module/
  + Updated the Headers-more module with the 0.19 version.
* debian/modules/README.Modules-versions
  + Updated the current version of modules following the updates.

[ Michael Lustfield ]
* debian/conf/sites-available/default
  + Uncommented listen lines to make server block default.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
use Test::Nginx::Socket;
5
5
 
6
6
repeat_each(10);
7
 
#repeat_each(1);
8
7
 
9
8
plan tests => repeat_each() * (blocks() * 2 + 2);
10
9
 
657
656
    }
658
657
--- request
659
658
    GET /main
 
659
--- stap2
 
660
global delta = "  "
 
661
 
 
662
M(http-subrequest-start) {
 
663
    r = $arg1
 
664
    n = ngx_http_subreq_depth(r)
 
665
    pr = ngx_http_req_parent(r)
 
666
    printf("%sbegin %s -> %s (%d)\n", ngx_indent(n, delta),
 
667
        ngx_http_req_uri(pr),
 
668
        ngx_http_req_uri(r),
 
669
        n)
 
670
}
 
671
 
 
672
F(ngx_http_lua_run_thread) {
 
673
    r = $r
 
674
    uri = ngx_http_req_uri(r)
 
675
    if (uri == "/main") {
 
676
        printf("run thread %s: %d\n", uri, $nret)
 
677
        #print_ubacktrace()
 
678
    }
 
679
}
 
680
 
 
681
M(http-lua-info) {
 
682
    uri = ngx_http_req_uri($r)
 
683
    #if (uri == "/main") {
 
684
    printf("XXX info: %s: %s", uri, user_string($arg1))
 
685
    #}
 
686
}
 
687
 
 
688
F(ngx_http_lua_post_subrequest) {
 
689
    r = $r
 
690
    n = ngx_http_subreq_depth(r)
 
691
    pr = ngx_http_req_parent(r)
 
692
 
 
693
    printf("%send %s -> %s (%d)\n", ngx_indent(n, delta),
 
694
        ngx_http_req_uri(r),
 
695
        ngx_http_req_uri(pr),
 
696
        n)
 
697
}
 
698
 
 
699
F(ngx_http_lua_handle_subreq_responses) {
 
700
    r = $r
 
701
    n = ngx_http_subreq_depth(r)
 
702
    printf("%shandle res %s (%d)\n", ngx_indent(n, delta), ngx_http_req_uri(r), n)
 
703
}
 
704
 
660
705
--- response_body
661
706
rewrite a: a
662
707
rewrite b: b