aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_upstream.c
Commit message (Collapse)AuthorAgeFilesLines
* [Fix] Store reference of upstream list in upstreams objectsVsevolod Stakhov2020-08-171-31/+80
|
* [Minor] Add failure reason in the upstreams codeVsevolod Stakhov2019-11-131-1/+9
|
* [Rework] Lua core: Use lightuserdata to index classesVsevolod Stakhov2019-09-161-24/+4
|
* [Fix] Do not use lightuserdata for tracebackVsevolod Stakhov2019-05-241-3/+1
| | | | | | | | | | LuaJIT limits lightuserdata usage to 47 bits. On Arm64, this leads to break of the C <-> Lua interoperability using this type. This rework has changed traceback function behaviour from lightuserdata opaque pointer (GString * in particular) to luaL_Buffer. Issue: #2906
* [Fix] Core: Fix address rotation bugVsevolod Stakhov2019-02-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | Previously, upstream.get_addr function returned the new address of the upstream. Unfortunately, it was used for printing addresses. It caused the following situation: let's imagine we have A1 and A2 where A1 was initially selected. So the connection was performed to A1: Current addr Selected addr Connect+---------+ A2+------>A1 A1 | +-+Print failure<---+ A1+------>A2 A2 | +----+ +->Mark failure+-------->+ A2 | +----+ But the failure OP as well as log message told about `A2` where the real problem happened with `A1`. This commit adds distinguishing between getting the next and the current address of the upstream resolving this issue.
* [Feature] Allow to add upstream watchers to Lua APIVsevolod Stakhov2018-12-051-4/+167
|
* [Feature] Add support for Lua API tracingVsevolod Stakhov2018-08-091-0/+9
|
* [Feature] Distinguish IP failures from connection failuresVsevolod Stakhov2018-07-021-1/+7
|
* [Minor] Fix table argument parsingVsevolod Stakhov2018-03-121-3/+5
|
* [Minor] Fix upstreams parsingVsevolod Stakhov2018-03-121-6/+23
|
* [Minor] Allow to create upstream lists without rspamd_configVsevolod Stakhov2018-02-151-6/+16
|
* [Minor] Allow to get all upstreams from the list in LuaVsevolod Stakhov2017-12-161-0/+35
|
* [Minor] Fix various style issuesVsevolod Stakhov2017-03-231-2/+0
|
* [Feature] Use rspamd specific type checks for userdataVsevolod Stakhov2016-05-051-2/+2
|
* Fix some issues found by coverityVsevolod Stakhov2016-02-091-1/+4
|
* Switch the rest to apache 2Vsevolod Stakhov2016-02-041-20/+12
|
* Use new rotation logic in the codeVsevolod Stakhov2015-11-211-2/+4
|
* Fix upstreams usageVsevolod Stakhov2015-11-201-31/+16
|
* Avoid non-portable lua integers.Vsevolod Stakhov2015-06-231-1/+1
|
* Forgot @module.Vsevolod Stakhov2015-04-091-0/+1
|
* Document lua upstream.Vsevolod Stakhov2015-04-091-30/+58
|
* Fix lua upstream code.Vsevolod Stakhov2014-10-281-275/+46
|
* Use rspamd_ prefix.Vsevolod Stakhov2014-08-251-2/+2
|
* Use modules preload for lua.Vsevolod Stakhov2014-08-251-5/+20
|
* Rework lua function names to avoid ambiguity.Vsevolod Stakhov2014-08-171-7/+7
|
* Unify style without sorting headers.Vsevolod Stakhov2014-07-231-57/+78
|
* Revert "Unify code style."Vsevolod Stakhov2014-07-231-79/+58
| | | | This reverts commit e0483657ff6cf1adc828ccce457814d61fe90a0d.
* Unify code style.Vsevolod Stakhov2014-07-231-58/+79
|
* Refactor config API.Vsevolod Stakhov2014-04-301-2/+2
|
* Adopt to lua 5.2.Vsevolod Stakhov2013-06-081-4/+4
|
* Avoid arrays addresses manipulation.Vsevolod Stakhov2013-06-061-3/+20
|
* Rework socket creation logic to support both ipv4 and ipv6 sockets.Vsevolod Stakhov2013-06-011-5/+5
|
* * Add lua worker type and lua worker bindings.Vsevolod Stakhov2012-07-261-0/+4
| | | | | | | * Add lua utility library for basic utils. * Fixes lua_buffer code. Fix lua loading error. Added some other lua utility functions.
* * Add ratelimit pluginVsevolod Stakhov2012-04-061-1/+1
| | | | Some polishing of lua task api.
* * Add lua bindings for upstream API.Vsevolod Stakhov2012-03-261-0/+521