summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/perl/ngx_http_perl_module.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2014-06-19Perl: NULL-terminate argument list.Piotr Sikora1-1/+2
perl_parse() function expects argv/argc-style argument list, which according to the C standard must be NULL-terminated, that is: argv[argc] == NULL. This change fixes a crash (SIGSEGV) that could happen because of the buffer overrun during perl module initialization. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
2013-09-04Handling of ngx_int_t != intptr_t case.Maxim Dounin1-2/+2
Casts between pointers and integers produce warnings on size mismatch. To silence them, cast to (u)intptr_t should be used. Prevoiusly, casts to ngx_(u)int_t were used in some cases, and several ngx_int_t expressions had no casts. As of now it's mostly style as ngx_int_t is defined as intptr_t.
2013-08-20Backed out f1a91825730a and 7094bd12c1ff.Maxim Dounin1-3/+1
While ngx_get_full_name() might have a bit more descriptive arguments, the ngx_conf_full_name() is generally easier to use when parsing configuration and limits exposure of cycle->prefix / cycle->conf_prefix details.
2013-08-06Replaced ngx_conf_full_name() with ngx_get_full_name().Valentin Bartenev1-1/+3
The ngx_get_full_name() function takes more readable arguments list.
2012-12-17Added checks that disallow adding a variable with an empty name.Ruslan Ermilov1-1/+1
Added variable name syntax checks to "geo" and "map" directives.
2012-12-13Fixed variable syntax checking in "set", "geo", "limit_conn_zone",Ruslan Ermilov1-1/+1
and "perl_set" directives.
2012-01-18Copyright updated.Maxim Konovalov1-0/+1
2010-05-24remove r->zero_in_uriIgor Sysoev1-4/+0
2010-05-14ngx_str_set() and ngx_str_null()Igor Sysoev1-2/+1
2010-02-12delete ngx_http_perl_cleanup_t unused since r909Igor Sysoev1-6/+0
2009-11-17add comment from r2716 commit messageIgor Sysoev1-0/+6
2009-11-17use global perl variable in perl_destruct()/perl_free()Igor Sysoev1-16/+11
for non-mulitiplicity perl
2009-09-30allow several perl_modulesIgor Sysoev1-16/+42
2009-09-28use ngx_conf_set_str_array_slot() for perl_requireIgor Sysoev1-37/+13
2009-09-28optimize error handlingIgor Sysoev1-14/+9
2009-09-15allow perl "sub{..."Igor Sysoev1-1/+4
2009-09-08fix request counter handling in perl module for $r->internal_redirect()Igor Sysoev1-0/+3
and $r->has_request_body(), the bug was introduced in r3050
2009-09-04fix request counter handling for perl handler, introduced in r3050Igor Sysoev1-3/+5
2009-08-26axe r->connection->destroyed testingIgor Sysoev1-9/+0
2009-06-02return NULL instead of NGX_CONF_ERROR on a create conf failureIgor Sysoev1-2/+2
2009-04-18remove TODO commentsIgor Sysoev1-1/+0
2009-04-16perl termination fixes:Igor Sysoev1-5/+25
*) master exit hook is run before global pool cleanup, so call PERL_SYS_TERM() after perl_destruct()/perl_free(). This fixes the message panic: MUTEX_LOCK (22) [op.c:352] on some threaded perl builds *) call perl_destruct()/perl_free() before PERL_SYS_TERM() for non-mulitiplicity perl
2009-04-15fix segfault on exit if no http section is defined in confguraiton,Igor Sysoev1-6/+4
the bug has been introduced in r1947
2009-04-15fix segfault if no http section is defined in confguraiton,Igor Sysoev1-7/+5
the bug has been introduced in r1259
2008-12-09use "!= NGX_OK" instead of "== NGX_ERROR"Igor Sysoev1-1/+1
2008-06-17*) back out r2040Igor Sysoev1-1/+1
*) refactor ngx_palloc() *) introduce ngx_pnalloc() *) additional pool blocks have smaller header
2008-03-17some perl builds require my_perl for PERL_SYS_TERM()Igor Sysoev1-0/+11
2008-03-14style fixIgor Sysoev1-0/+1
2008-03-13fix building on 64-bit platforms broken in r1900Igor Sysoev1-1/+1
2008-02-16pass additional arguments in ngx_http_perl_call_handler() as SVIgor Sysoev1-12/+33
2008-02-16optimize $r->sleepIgor Sysoev1-8/+1
2007-12-09fix segfault when $r->has_request_body() is called with ready bodyIgor Sysoev1-11/+26
2007-10-14fix English grammarIgor Sysoev1-2/+2
2007-07-29--sysconfdir=DIRIgor Sysoev1-1/+1
2007-06-16fix building on threaded or multiplicity interpreter perl,Igor Sysoev1-0/+11
the bug was introduced by previous commit
2007-06-15set worker's perl $$Igor Sysoev1-1/+12
2007-05-29PERL_SYS_TERM() should be called once on exit only, this fixes the messageIgor Sysoev1-5/+13
panic: MUTEX_LOCK (22) [op.c:352]. BEGIN failed--compilation aborted. ... [alert] ... perl_parse() failed: 9 Scalars leaked: 2 on threaded perl during second reconfiguration. PERL_SYS_INIT() should be called once too.
2007-04-18fix segfault whenIgor Sysoev1-0/+5
*) perl was built without multiplicity *) when configuration was invalid
2007-04-18set nginx_stash after reconfiguration in single interpreter perlIgor Sysoev1-0/+1
2007-01-20envIgor Sysoev1-11/+14
2007-01-12style fix: remove tabsIgor Sysoev1-1/+1
2006-12-14allow "perl" inside "limit_except"Igor Sysoev1-1/+1
2006-12-13fix ngx_http_perl_sleep_handler()Igor Sysoev1-1/+13
2006-12-12$r->sleep()Igor Sysoev1-0/+17
2006-12-12axe ngx_http_perl_cleanup_sv(): all SVs should be freedIgor Sysoev1-37/+0
by perl_free() in ngx_http_perl_cleanup_perl()
2006-11-26add commentIgor Sysoev1-0/+3
2006-11-26fix segfaults in future workers those will use old configuration,Igor Sysoev1-8/+22
if new configuration failed
2006-11-26Axe several perl interpreter instances: they may be useful in currentlyIgor Sysoev1-169/+13
unsupported threaded environment, but now they complicate code: *) perl_clone() requires at least duplicating nginx stash; *) the multiplicity requires to re-evalute all precompiled subroutines and nginx stash in new interpreter context.
2006-11-25add debug loggingIgor Sysoev1-0/+5
2006-11-25fix recursive perl_set variable callIgor Sysoev1-6/+16