~ubuntu-branches/ubuntu/trusty/uwsgi/trusty

« back to all changes in this revision

Viewing changes to plugins/psgi/uwsgi_plmodule.c

  • Committer: Package Import Robot
  • Author(s): Janos Guljas
  • Date: 2012-02-13 03:43:28 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120213034328-d02hz8m5pon6kaxf
Tags: 1.0.3+dfsg-1
* New upstream version.
* Adjust rack plugin LD_RUN_PATH patch.
* Adjust patch for uWSGI Control Center jQuery links in templates.
* Remove '-fno-strict-aliasing' CFLAG patch as it is implemented upstream.
* Remove fix indentation of uwsgidecorators_py patch as implemented upstream.
* Adjust init scripts to use top-bottom options order, as --inherit option
  is not working as in earlier versions. 
* Update debian/copyright file.
* Add LSB Description field to debian/uwsgi.init.d.
* Set Architecture to "all" for binary package uwsgi-extra because
  it contains no architecture dependent files.
* Change uwsgi description. (Closes: #640698)
* New binary packages:
  - uwsgi-plugin-carbon
  - uwsgi-plugin-graylog2
  - uwsgi-plugin-logsocket
  - uwsgi-plugin-probeconnect
  - uwsgi-plugin-probepg
  - uwsgi-plugin-rrdtool
  - uwsgi-plugin-rsyslog
  - uwsgi-plugin-signal
  - uwsgi-plugin-symcall
  - uwsgi-plugin-syslog
* python-uwsgidecorators:
  - fix binary-install rule to call dh_python2
  - remove debian/source.lintian-overrides
* uwsgi-plugin-jvm-openjdk-6:
  - fix FTBFS on armel and powerpc (Closes: #656280)
* uwsgi-plugin-python:
  - document issue "ImportError: No module named site" when using
    virtualenv with Python 2.6 in README.Debian (Closes: #654333)
* Adjust debian/watch uversionmangle option.
* Repack upstram source to remove minimized jQuery and jQuery UI JavaScript
  libraries:
  - add get-orig-source rule to debian/rules
  - append +dfsg to upstream version
  - update debian/watch with dversionmangle option

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
 
156
156
        dXSARGS;
157
157
 
158
 
        char buffer[0xffff];
159
158
        char *func;
160
159
        uint16_t size = 0;
161
160
        int i;
162
 
        char *argv[0xff];
 
161
        char *argv[256];
 
162
        uint16_t argvs[256];
 
163
        STRLEN arg_len;
163
164
 
164
165
        psgi_check_args(1);
165
166
 
166
167
        func = SvPV_nolen(ST(0));
167
168
 
168
169
        for(i=0;i<(items-1);i++) {
169
 
                argv[i] = SvPV_nolen(ST(i+1));
 
170
                argv[i] = SvPV(ST(i+1), arg_len);
 
171
                argvs[i] = arg_len;
170
172
        }
171
173
 
172
 
        size = uwsgi_rpc(func, items-1, argv, buffer);
 
174
        char *response = uwsgi_do_rpc(NULL, func, items-1, argv, argvs, &size);
173
175
 
174
176
        if (size > 0) {
175
 
                ST(0) = newSVpv(buffer, size);
 
177
                ST(0) = newSVpv(response, size);
176
178
                sv_2mortal(ST(0));
177
 
 
 
179
                free(response);
178
180
                XSRETURN(1);
179
181
        }
180
182