Perl: request processing in multiple threads.

This closes #486 issue on GitHub.
This commit is contained in:
Max Romanov
2020-11-05 16:10:59 +03:00
parent e17e73edda
commit d321d454f9
5 changed files with 374 additions and 148 deletions

View File

@@ -14,7 +14,7 @@
#include <perliol.h>
typedef struct nxt_perl_psgi_io_arg nxt_perl_psgi_io_arg_t;
typedef struct nxt_perl_psgi_io_arg_s nxt_perl_psgi_io_arg_t;
typedef long (*nxt_perl_psgi_io_read_f)(PerlInterpreter *my_perl,
nxt_perl_psgi_io_arg_t *arg, void *vbuf, size_t length);
@@ -24,7 +24,7 @@ typedef long (*nxt_perl_psgi_io_arg_f)(PerlInterpreter *my_perl,
nxt_perl_psgi_io_arg_t *arg);
struct nxt_perl_psgi_io_arg {
struct nxt_perl_psgi_io_arg_s {
SV *io;
PerlIO *fp;
@@ -32,7 +32,7 @@ struct nxt_perl_psgi_io_arg {
nxt_perl_psgi_io_read_f read;
nxt_perl_psgi_io_write_f write;
void *ctx;
void *pctx;
};