Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [Rework] Further types conversion (no functional changes) | Vsevolod Stakhov | 2024-03-18 | 1 | -5/+5 |
| | |||||
* | [Rework] Use clang-format to unify formatting in all sources | Vsevolod Stakhov | 2023-07-26 | 1 | -86/+85 |
| | | | | No meaningful changes. | ||||
* | [Minor] Add failure reason in the upstreams code | Vsevolod Stakhov | 2019-11-13 | 1 | -2/+2 |
| | |||||
* | [Fix] Distinguish remote and local addrs parsing | Vsevolod Stakhov | 2019-09-28 | 1 | -2/+4 |
| | |||||
* | [Fix] Do not call implicit strlen to avoid issues | Vsevolod Stakhov | 2019-09-26 | 1 | -2/+2 |
| | |||||
* | [Test] Fix functional tests | Vsevolod Stakhov | 2019-06-22 | 1 | -13/+12 |
| | |||||
* | [Project] First refactoring step libevent->libev | Vsevolod Stakhov | 2019-06-22 | 1 | -1/+1 |
| | |||||
* | [Minor] Refactor DNS resolver invocations | Vsevolod Stakhov | 2019-04-11 | 1 | -1/+1 |
| | |||||
* | [Minor] Fix broken test | Vsevolod Stakhov | 2019-03-04 | 1 | -1/+1 |
| | |||||
* | [Fix] Core: Fix address rotation bug | Vsevolod Stakhov | 2019-02-18 | 1 | -10/+10 |
| | | | | | | | | | | | | | | | | | | | | | | 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] Distinguish IP failures from connection failures | Vsevolod Stakhov | 2018-07-02 | 1 | -2/+2 |
| | |||||
* | [Project] Rework rspamadm and Lua init path | Vsevolod Stakhov | 2018-05-24 | 1 | -1/+1 |
| | |||||
* | [Fix] Fix parsing IPv6 nameservers in resolv.conf | Vsevolod Stakhov | 2017-06-14 | 1 | -1/+3 |
| | |||||
* | Switch the rest to apache 2 | Vsevolod Stakhov | 2016-02-04 | 1 | -21/+11 |
| | |||||
* | Rework upstreams library | Vsevolod Stakhov | 2015-12-03 | 1 | -19/+39 |
| | | | | Now each address has its own errors count, so rspamd will prefer upstream addrs with no errors to addrs with errors. This might help to resolve issues on systems where ipv6 does not work. | ||||
* | Use new rotation logic in the code | Vsevolod Stakhov | 2015-11-21 | 1 | -3/+3 |
| | |||||
* | Rework upstreams initialization | Vsevolod Stakhov | 2015-11-20 | 1 | -6/+3 |
| | |||||
* | Fix tests | Vsevolod Stakhov | 2015-11-20 | 1 | -6/+5 |
| | |||||
* | Fix parsing of fixed length IP addresses. | Vsevolod Stakhov | 2015-10-13 | 1 | -2/+2 |
| | |||||
* | Reorganize includes to reduce namespace pollution. | Vsevolod Stakhov | 2015-10-08 | 1 | -1/+1 |
| | |||||
* | Rename main.h and main.c to `rspamd.X` | Vsevolod Stakhov | 2015-09-22 | 1 | -1/+1 |
| | |||||
* | Add tags to rspamd_mempool. | Vsevolod Stakhov | 2015-08-27 | 1 | -1/+1 |
| | |||||
* | Fix upstream test. | Vsevolod Stakhov | 2015-03-14 | 1 | -1/+3 |
| | |||||
* | Fix order of upstream in test rotation. | Vsevolod Stakhov | 2015-03-12 | 1 | -2/+2 |
| | |||||
* | Fix test framework. | Vsevolod Stakhov | 2015-03-12 | 1 | -7/+6 |
| | |||||
* | Rework IP addresses in upstreams. | Vsevolod Stakhov | 2014-11-07 | 1 | -0/+27 |
| | | | | | | | | | - Select ipv4/unix addresses if they exist and use ipv6 for ipv6 only upstreams (since the support of ipv6 is poor in many OSes and environments). - Free IP list on upstream destruction. - Add test cases for addresses selection. - Allow adding of free form IP addresses to upstreams. | ||||
* | Improve upstream tests. | Vsevolod Stakhov | 2014-11-03 | 1 | -1/+31 |
| | |||||
* | Configure upstreams in workers. | Vsevolod Stakhov | 2014-11-03 | 1 | -2/+4 |
| | |||||
* | Add consistent hash test. | Vsevolod Stakhov | 2014-11-02 | 1 | -5/+43 |
| | | | | | | | | | | P value is calculated as following: when we add/remove M upstreams from the list, the probability of hash miss should be close to the relation N / (N + M), where N is the size of the previous upstreams list. So far, the algorithm described in http://arxiv.org/abs/1406.2294 shows p value more than 0.99. | ||||
* | Some more fixes to the test. | Vsevolod Stakhov | 2014-11-02 | 1 | -1/+4 |
| | |||||
* | Add a simple upstreams test. | Vsevolod Stakhov | 2014-11-02 | 1 | -0/+73 |