1
0
şunun yansıması https://github.com/rspamd/rspamd.git eşitlendi 2024-08-24 05:54:36 +02:00
İşleme Grafiği

29 İşleme

Yazar SHA1 Mesaj Tarih
Vsevolod Stakhov
684996ee80 [Minor] Add failure reason in the upstreams code 2019-11-13 13:58:09 +00:00
Vsevolod Stakhov
04127efeba [Fix] Distinguish remote and local addrs parsing 2019-09-28 13:37:22 +01:00
Vsevolod Stakhov
66d8b6e434 [Fix] Do not call implicit strlen to avoid issues 2019-09-26 12:07:29 +01:00
Vsevolod Stakhov
300acf008d [Test] Fix functional tests 2019-06-22 10:57:29 +01:00
Vsevolod Stakhov
98897c1797 [Project] First refactoring step libevent->libev 2019-06-22 10:57:29 +01:00
Vsevolod Stakhov
6943c3c3a4 [Minor] Refactor DNS resolver invocations 2019-04-11 15:00:01 +01:00
Vsevolod Stakhov
eda5cfa386 [Minor] Fix broken test 2019-03-04 18:17:41 +00:00
Vsevolod Stakhov
0f32df6f44 [Fix] Core: Fix address rotation bug
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.
2019-02-18 12:58:57 +00:00
Vsevolod Stakhov
1812d38cb8 [Feature] Distinguish IP failures from connection failures 2018-07-02 12:30:08 +01:00
Vsevolod Stakhov
25ef6b9821 [Project] Rework rspamadm and Lua init path 2018-05-24 19:56:05 +01:00
Vsevolod Stakhov
639c67dbd8 [Fix] Fix parsing IPv6 nameservers in resolv.conf 2017-06-14 09:30:08 +01:00
Vsevolod Stakhov
8766fba694 Switch the rest to apache 2 2016-02-04 09:37:21 +00:00
Vsevolod Stakhov
9b9aa6efc8 Rework upstreams library
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.
2015-12-03 18:51:21 +00:00
Vsevolod Stakhov
f3ac408594 Use new rotation logic in the code 2015-11-21 13:31:26 +00:00
Vsevolod Stakhov
3d10a9ead7 Rework upstreams initialization 2015-11-20 17:03:51 +00:00
Vsevolod Stakhov
c3896936f5 Fix tests 2015-11-20 16:33:34 +00:00
Vsevolod Stakhov
9370ea45e1 Fix parsing of fixed length IP addresses. 2015-10-13 15:17:45 +01:00
Vsevolod Stakhov
eb737947eb Reorganize includes to reduce namespace pollution. 2015-10-08 13:15:15 +01:00
Vsevolod Stakhov
3afc4aba24 Rename main.h and main.c to rspamd.X 2015-09-22 18:17:24 +01:00
Vsevolod Stakhov
b05c7c9edd Add tags to rspamd_mempool. 2015-08-27 17:36:29 +01:00
Vsevolod Stakhov
cf1beeb1b2 Fix upstream test. 2015-03-14 21:51:53 +00:00
Vsevolod Stakhov
548833c06e Fix order of upstream in test rotation. 2015-03-12 18:32:59 +00:00
Vsevolod Stakhov
8426999b16 Fix test framework. 2015-03-12 16:48:02 +00:00
Vsevolod Stakhov
cd5656abb7 Rework IP addresses in upstreams.
- 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.
2014-11-07 13:33:45 +00:00
Vsevolod Stakhov
f8971ca2d4 Improve upstream tests. 2014-11-03 11:41:07 +00:00
Vsevolod Stakhov
15dc327ac9 Configure upstreams in workers. 2014-11-03 10:23:32 +00:00
Vsevolod Stakhov
1e86acfae8 Add consistent hash test.
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.
2014-11-02 21:42:53 +00:00
Vsevolod Stakhov
9634654300 Some more fixes to the test. 2014-11-02 19:03:15 +00:00
Vsevolod Stakhov
89442fca48 Add a simple upstreams test. 2014-11-02 18:38:43 +00:00