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

« back to all changes in this revision

Viewing changes to debian/modules/nginx-echo/src/ngx_http_echo_handler.c

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry, Cyril Lavier, Michael Lustfield, Kartik Mistry
  • Date: 2012-05-14 11:15:00 UTC
  • mfrom: (4.2.49 sid)
  • Revision ID: package-import@ubuntu.com-20120514111500-1y9ij7zulu9xnmry
Tags: 1.2.0-1
[Cyril Lavier]
* New upstream release. (Closes: #670306)
  + 1.2.x is stable release now.
* debian/modules/chunkin-nginx-module:
  + Updated chunkin-nginx-module to v0.23rc2-3-g85eca98.
* debian/modules/headers-more-module:
  + Updated headers-more-module to v0.17rc1-4-g33a82ed.
* debian/modules/nginx-development-kit:
  + Updated nginx-development-kit to v0.2.17-7-g24202b4.
* debian/modules/nginx-echo:
  + Updated nginx-echo to v0.38rc2-7-g080c0a1.
* debian/modules/nginx-lua:
  + Updated nginx-lua to v0.5.0rc25-5-g8d28785.
* debian/modules/nginx-upstream-fair:
  + Updated nginx-upstream-fair to a18b409.
* debian/modules/nginx-upload-progress:
  + Updated nginx-upload-progress to v0.9.0-0-ga788dea.
* debian/modules/naxsi:
  + Updated naxsi to 0.46
* debian/modules/README.Modules-versions:
  + Updated versions and URLs for modules.
* debian/naxsi-ui-extract, debian/naxsi-ui-intercept,
  debian/nginx-naxsi-ui.*, debian/naxsi-ui-extract.1,
  debian/naxsi-ui-intercept.1, debian/rules:
  + Added nginx-naxsi-ui package containing the learning daemon
    and the WebUI.
* debian/nginx-common.nginx.default, debian/nginx-common.nginx.init:
  + Renamed files to be compliant with the nginx-naxsi-ui package.
* debian/po:
  + Added needed files for using po-debconf.
  + Added French translation.
* debian/control:
  + Applied the modifications given after the review by Justin Rye.

[Michael Lustfield]
* debian/conf/uwsgi_params:
  + Added UWSGI_SCHEME to uwsgi_params. (Closes: #664878)
* debian/conf/sites-available/default:
  + Added allow directive for ipv6 localhost. (Closes: #664271)

[Kartik Mistry]
* debian/control:
  + wrap-and-sort.
* debian/copyright:
  + Added missing copyrights, minor formatting fixes.
* debian/nginx-common.nginx.init:
  + Added ulimit for restarts, Thanks to Daniel Roschka
    <danielroschka@phoenitydawn.de> for patch. (Closes: #673580)
* debian/conf/sites-available/default:
  + Added patch to fix deprecated "listen" directive, Thanks to
    Guillaume Plessis <gui@dotdeb.org> for patch. (Closes: #672632)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef DDEBUG
1
2
#define DDEBUG 0
2
 
 
 
3
#endif
3
4
#include "ddebug.h"
4
5
 
5
6
#include "ngx_http_echo_filter.h"
80
81
    dd("rc: %d", (int) rc);
81
82
 
82
83
    if (rc == NGX_DONE) {
 
84
        ngx_http_finalize_request(r, rc);
83
85
        return;
84
86
    }
85
87
 
112
114
    ngx_int_t                    rc;
113
115
    ngx_http_echo_ctx_t         *ctx;
114
116
 
 
117
    dd("subrequest in memory: %d", (int) r->subrequest_in_memory);
 
118
 
115
119
    rc = ngx_http_echo_run_cmds(r);
116
120
 
 
121
    dd("run cmds returned %d", (int) rc);
 
122
 
117
123
    if (rc == NGX_ERROR) {
118
124
        return NGX_HTTP_INTERNAL_SERVER_ERROR;
119
125
    }
240
246
 
241
247
        case echo_opcode_echo_location:
242
248
            return ngx_http_echo_exec_echo_location(r, ctx, computed_args);
243
 
            break;
244
249
 
245
250
        case echo_opcode_echo_subrequest_async:
246
251
            dd("found opcode echo subrequest async...");
250
255
 
251
256
        case echo_opcode_echo_subrequest:
252
257
            return ngx_http_echo_exec_echo_subrequest(r, ctx, computed_args);
253
 
            break;
254
258
 
255
259
        case echo_opcode_echo_sleep:
256
260
            return ngx_http_echo_exec_echo_sleep(r, ctx, computed_args);
257
 
            break;
258
261
 
259
262
        case echo_opcode_echo_flush:
260
263
            rc = ngx_http_echo_exec_echo_flush(r, ctx);
307
310
        case echo_opcode_echo_exec:
308
311
            dd("echo_exec");
309
312
            return ngx_http_echo_exec_exec(r, ctx, computed_args);
310
 
            break;
311
313
 
312
314
        default:
313
315
            ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,