summaryrefslogtreecommitdiff
path: root/modules/lua
Commit message (Collapse)AuthorAgeFilesLines
* * modules/lua: Use https: URLs for httpd.a.o in docs. [skip ci]Joe Orton2023-03-232-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908672 13f79535-47bb-0310-9956-ffa450edef68
* mod_wombat => mod_luaJoe Orton2023-03-233-9/+9
| | | | | | | | | | Fix SVN URL Submitted by: Sebb <sebb@apache.org> Github: closes #352 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908671 13f79535-47bb-0310-9956-ffa450edef68
* use filters consistentlyEric Covener2022-06-011-91/+53
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1901502 13f79535-47bb-0310-9956-ffa450edef68
* cast firstEric Covener2022-06-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1901496 13f79535-47bb-0310-9956-ffa450edef68
* * Avoid "may be uninitialized" warningRuediger Pluem2022-03-081-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1898731 13f79535-47bb-0310-9956-ffa450edef68
* mod_lua: Error out if lua_read_body() or lua_write_body() fail.Yann Ylavic2022-03-071-13/+20
| | | | | | | | | Otherwise r:requestbody() or r:parsebody() failures might go unnoticed for the user. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1898689 13f79535-47bb-0310-9956-ffa450edef68
* ap_lua_init_mutex() is not about thead only . It also callsChristophe Jaillet2022-02-271-2/+1
| | | | | | | | | | apr_global_mutex_child_init(). So I see no good reason to skip this hook if !APR_HAS_THREADS. Some #if APR_HAS_THREADS are also already in place in ap_lua_init_mutex() anyway. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1898453 13f79535-47bb-0310-9956-ffa450edef68
* * Improve error handlingRuediger Pluem2021-12-151-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1895970 13f79535-47bb-0310-9956-ffa450edef68
* core/ap_ssl_*: changes after review by rpluemStefan Eissing2021-04-201-1/+1
| | | | | | | | | | | | | | | - removed no longer needed (char*) casts when looking up ssl variables. - move 'goto cleanup;' on separate source line - fixed check for wrong optional function in ap_run_ssl_var_lookup - remove ap_bytes_t again from httpd.h and passes now ocsp identifier as separate const char* and apr_size_t. This follows more how such data is passed in the rest of the server. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1889009 13f79535-47bb-0310-9956-ffa450edef68
* Fixing mod_lua to use new http_ssl.h header file as well.Stefan Eissing2021-03-261-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1888084 13f79535-47bb-0310-9956-ffa450edef68
* Using the new ap_ssl_conn_is_ssl() and ap_ssl_var_lookup() in all internal ↵Stefan Eissing2021-03-091-11/+2
| | | | | | | | | | | | modules. * leaving mod_nw_ssl and mod_ssl itself untouched * removing mod_ssl.h includes where no longer necessary * some modules might skip post_config hooks, but those were left in, even when empty now. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1887364 13f79535-47bb-0310-9956-ffa450edef68
* Add missing comma in some 'apr_apr_psprintf()' call if APR_HAS_THREADS is ↵Christophe Jaillet2020-09-271-2/+2
| | | | | | not defined git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1882060 13f79535-47bb-0310-9956-ffa450edef68
* Add missing "const" or "static const" qualifiers in some command_recChristophe Jaillet2020-09-271-1/+1
| | | | | | definitions. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1882053 13f79535-47bb-0310-9956-ffa450edef68
* Restore broken win32 build, include apr/std headers before httpd headersWilliam A. Rowe Jr2020-09-051-18/+17
| | | | | | | | | | | | | - In httpd we override exit() to trap the true exit code (see os/win32/os.h) - process.h was redefining exit() which picked up the macro instead of the original exit() declaration - Cleaner style pulls in apr, then standard C headers, and finally sets down the httpd includes on top of these, resolving the windows build regression git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1881477 13f79535-47bb-0310-9956-ffa450edef68
* * Correctly define lua_resume for Lua <= 5.1Ruediger Pluem2020-08-171-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1880924 13f79535-47bb-0310-9956-ffa450edef68
* improve Lua 5.4 handlingGiovanni Bechis2020-08-101-3/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1880743 13f79535-47bb-0310-9956-ffa450edef68
* Support building against Lua 5.4 by adjusting to the 3-arg form ofJoe Orton2020-08-073-12/+20
| | | | | | | | | | | | | | | | | lua_resume(). * modules/lua/config.m4 (CHECK_LUA): Check for lua5.4 paths. * modules/lua/mod_lua.c (lua_output_filter_handle, lua_input_filter_handle): Check that exactly one item is on the stack as indicated by lua_resume(). Submitted by: Lubos Uhliarik <luhliari redhat.com>, jorton PR: 64591 Github: closes #130, closes #133, closes #134 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1880678 13f79535-47bb-0310-9956-ffa450edef68
* Declare pre_translate hook in lua/info/log_debug/example modules, and docs.Yann Ylavic2020-06-221-0/+31
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1879077 13f79535-47bb-0310-9956-ffa450edef68
* add r/o iterable tablesEric Covener2020-01-071-0/+44
| | | | | | | | | | The current apr tables exposed support get/set but we cannot get the keys or iterate. add _table() alternatives git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872455 13f79535-47bb-0310-9956-ffa450edef68
* PR63971 expose apr_table_unset for headers/envvarsEric Covener2019-11-301-1/+7
| | | | | | | | via nil assignment git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1870650 13f79535-47bb-0310-9956-ffa450edef68
* * modules/proxy/mod_proxy.c (create_proxy_config): Tag the pool.Joe Orton2019-06-251-0/+2
| | | | | | | * modules/lua/mod_lua.c (lua_post_config, create_vm_spec): Tag pools. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862051 13f79535-47bb-0310-9956-ffa450edef68
* Fix comment in mod_lua and docs.Christophe Jaillet2018-08-041-1/+1
| | | | | | | s/addoutputfilter/add_output_filter/ See PR 62359 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1837404 13f79535-47bb-0310-9956-ffa450edef68
* Fix PR54848 in a 2.4.x backportable format. Ideally deprecating the useJim Jagielski2018-08-011-0/+4
| | | | | | | | of ->client in whatever version of 2.4 this is added into would be more logical. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1837225 13f79535-47bb-0310-9956-ffa450edef68
* Function used as 'apr_reslist_destructor' when calling ↵Christophe Jaillet2018-06-231-2/+3
| | | | | | | | 'apr_reslist_create()' should have the following prototype: apr_status_t (*apr_reslist_destructor)(void *resource, void *params, apr_pool_t *pool); git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1834226 13f79535-47bb-0310-9956-ffa450edef68
* Fix some typos reported in PR 59998Christophe Jaillet2018-03-241-2/+2
| | | | | | | | Most add already been fixed when PR 59990 had been applied on trunk. Thx klemens git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1827669 13f79535-47bb-0310-9956-ffa450edef68
* * modules/lua/config.m4 (CHECK_LUA): Support Debian-styleJoe Orton2018-03-081-7/+12
| | | | | | | | | pkg-config naming for lua. Reviewed by: ylavic git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1826206 13f79535-47bb-0310-9956-ffa450edef68
* * modules/lua/config.m4: Use liblua paths from pkg-config ifJoe Orton2018-02-231-4/+12
| | | | | | | available. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1825147 13f79535-47bb-0310-9956-ffa450edef68
* * modules/lua/config.m4: Link mod_lua against -lcrypt if available,Joe Orton2018-01-261-1/+1
| | | | | | | since mk_password_hash() can use crypt(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1822305 13f79535-47bb-0310-9956-ffa450edef68
* Fix another mod_lua compile error.Rainer Jung2017-07-041-1/+1
| | | | | | | | | | | Compilation now tested against Lus 5.1, 5.2 and 5.3. The libs were compiled with COMPAT flags set, but mod_lua no longer sets them so it should compile and run with non-COMPAT libs as well. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1800833 13f79535-47bb-0310-9956-ffa450edef68
* Fix new compilation breakage in mod_lua.Rainer Jung2017-07-043-12/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1800830 13f79535-47bb-0310-9956-ffa450edef68
* Mostly revert the configure compat check forRainer Jung2017-07-041-33/+5
| | | | | | | | lua from r1785753. This should now no longer be needed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1800819 13f79535-47bb-0310-9956-ffa450edef68
* Fix last compat issue with Lua 5.2 and 5.3.Rainer Jung2017-07-041-0/+4
| | | | | | | | | | Patch taken from PR58188 which picked it from openSUSE. Still needs testing. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1800817 13f79535-47bb-0310-9956-ffa450edef68
* More mod_lua compat for Lua 5.1, 5.2, 5.3.Rainer Jung2017-07-045-21/+19
| | | | | | | | | | One last use of luaL_register() with a non-NULL "name" argument remaining. Not tested yet. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1800815 13f79535-47bb-0310-9956-ffa450edef68
* mod_lua: Improve compatibility with Lua 5.1, 5.2 and 5.3.Rainer Jung2017-07-042-5/+5
| | | | | | | | | PR58188, PR60831, PR61245. Still to solve: replace uses of luaL_register(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1800809 13f79535-47bb-0310-9956-ffa450edef68
* configure: check for luaL_register in libluaJacob Champion2017-03-061-6/+37
| | | | | | | | | This is a temporary workaround for a missing compatibility API on Debian-like systems (and anyone else who doesn't compile with LUA_COMPAT_MODULE). Ignore any such libraries so we don't fail confusingly later. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1785753 13f79535-47bb-0310-9956-ffa450edef68
* configure: remove mod_lua code duplicationJacob Champion2017-03-061-200/+43
| | | | | | Pull identical code into the CHECK_LUA_PATH macro. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1785752 13f79535-47bb-0310-9956-ffa450edef68
* Look for specific versioned installs of Lua 5.3Jim Jagielski2017-03-021-24/+83
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1785115 13f79535-47bb-0310-9956-ffa450edef68
* Save a few bytes in the request pool.Christophe Jaillet2017-02-151-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1783057 13f79535-47bb-0310-9956-ffa450edef68
* https://bz.apache.org/bugzilla/show_bug.cgi?id=58855Jim Jagielski2017-01-092-4/+4
| | | | | | | Optimize check for empty strings git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1778067 13f79535-47bb-0310-9956-ffa450edef68
* Unlock mutex in error path.Christophe Jaillet2016-12-251-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1776006 13f79535-47bb-0310-9956-ffa450edef68
* Fix some style issue.Christophe Jaillet2016-12-031-5/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1772490 13f79535-47bb-0310-9956-ffa450edef68
* The default value of 'inherit' should be AP_LUA_INHERIT_UNSET.Christophe Jaillet2016-12-031-0/+1
| | | | | | | | | | With this value, the behavior is the same as 'parent-first' in the 'LuaInherit' directive If not explicitelly initialized, its value is 0 because of the 'apr_calloc 'in 'create_dir_config'. 0 means 'AP_LUA_INHERIT_NONE' PR 60419 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1772489 13f79535-47bb-0310-9956-ffa450edef68
* Fix spelling in comments and text files.Rainer Jung2016-08-111-1/+1
| | | | | | | | No functional change. PR 59990 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1756038 13f79535-47bb-0310-9956-ffa450edef68
* * modules/lua/mod_lua.c (lua_post_config): Use anonymous shm segmentJoe Orton2016-04-081-12/+12
| | | | | | | | in preference to named segment. Ensure startup is possible after an unclean shutdown. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1738229 13f79535-47bb-0310-9956-ffa450edef68
* Fix typo in comment (s/patterm/pattern/).Rainer Jung2016-01-211-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1726086 13f79535-47bb-0310-9956-ffa450edef68
* Added some more log numbers to log statements thatRainer Jung2016-01-192-0/+2
| | | | | | | | | | had none. Those were not detected by the coccinelle script. Only a few hard cases are remaining now. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1725548 13f79535-47bb-0310-9956-ffa450edef68
* Added many log numbers to log statements thatRainer Jung2016-01-193-23/+30
| | | | | | | | | had none. Those were not detected by the coccinelle script. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1725485 13f79535-47bb-0310-9956-ffa450edef68
* Added many log numbers to log statements thatRainer Jung2016-01-193-26/+28
| | | | | | | | | | | had none. Handled all files in modules/. I used the coccinelle script provided by Stefan. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1725392 13f79535-47bb-0310-9956-ffa450edef68
* Turn 5.1/5.2 order upside down, simplify. This should also (AFAIK) work with ↵Daniel Gruno2015-10-031-77/+51
| | | | | | Ubuntu/Debian, which has previously been known to fail to compile mod_lua.so git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1706533 13f79535-47bb-0310-9956-ffa450edef68
* Fix some style issues on files that can easily be synch'ed with 2.4.xChristophe Jaillet2015-09-301-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1705983 13f79535-47bb-0310-9956-ffa450edef68