laodc
ee05b36e77
changed errors to warnings.
nullptr on contructor was never meant to be there
10 months ago
laodc
75fdc829ba
Added support for Redis 6 ACL (username/password)
10 months ago
Vsevolod Stakhov
ef58324535
[Rework] More steps to do refactoring
10 months ago
Vsevolod Stakhov
537a7180a0
[Rework] Use clang-format to unify formatting in all sources
No meaningful changes.
10 months ago
Josh Soref
2b8e6958f4
Spelling (#4086)
[Rework] Massive spelling fix from @jsoref
2 years ago
Vsevolod Stakhov
2ea40ec56a
[Minor] Improve logging for REDIS_REPLY_ERROR
3 years ago
Vsevolod Stakhov
c2351037b5
[Feature] Support multiple base32 alphabets
4 years ago
Vsevolod Stakhov
716642909e
[Minor] Zero terminate id string
4 years ago
Vsevolod Stakhov
a7108fde8f
[Minor] Oops, remove g_free dtor
4 years ago
Vsevolod Stakhov
35179d94a8
[Minor] Allocate variable in the pool and avoid malloc
4 years ago
resec
901e31e977
Revert "[Fix] #3129 Multiple classifiers on redis working incorrectly"
This reverts commit 14495547de
.
4 years ago
Vsevolod Stakhov
684996ee80
[Minor] Add failure reason in the upstreams code
4 years ago
resec
14495547de
[Fix] #3129 Multiple classifiers on redis working incorrectly
4 years ago
Vsevolod Stakhov
0d916d0c7a
[Minor] Do not crash if redis cache cannot be reached
4 years ago
Vsevolod Stakhov
ff1f29cc72
[Fix] Important hiredis fixes
Hiredis can return error in two ways:
- ctx is NULL and this path is usually handled properly
- ctx->err is not REDIS_OK and this path is totally missing in many places
This change should fix the both cases.
4 years ago
Vsevolod Stakhov
5f1ac2f30b
[Project] Adopt libstat code
5 years ago
Vsevolod Stakhov
0334b8e433
[Project] Further rework
5 years ago
Vsevolod Stakhov
98897c1797
[Project] First refactoring step libevent->libev
5 years ago
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.
5 years ago
Vsevolod Stakhov
ccbc89bc15
[Minor] Do not use item in classifiers as it causes issues
Issue: #2636
5 years ago
Vsevolod Stakhov
43a821c91c
[Project] Migrate fuzzy redis backend to lua_redis
5 years ago
Vsevolod Stakhov
ddcdc5c183
[Project] Use lua_redis for redis_cache as well
5 years ago
Vsevolod Stakhov
4929e73f2b
[Project] Another rework for symbols cache
5 years ago
Vsevolod Stakhov
0c20729f33
[Rework] Add more traces to async events, get rid of GQuarks
5 years ago
Vsevolod Stakhov
f76b158223
[Project] Adopt C modules and stuff
5 years ago
Vsevolod Stakhov
915a460b6a
[Minor] Fix event pending checks
5 years ago
Vsevolod Stakhov
c05c2b3b82
[Fix] Fix more issues with watching of async events
5 years ago
Vsevolod Stakhov
d45ec6978f
[Fix] Fix crashes on task cleanup
5 years ago
Vsevolod Stakhov
1af89c3566
[Fix] Add fail-safety for destroying sessions
5 years ago
Vsevolod Stakhov
1812d38cb8
[Feature] Distinguish IP failures from connection failures
6 years ago
Vsevolod Stakhov
e9c35582e7
[Minor] Allow to parse integer database names for Redis
Issue: #2083
Closes: #2083
6 years ago
Vsevolod Stakhov
4beb2f2970
[Minor] Final stage of g_slice removal
6 years ago
Vsevolod Stakhov
e737e9942c
[Rework] Set token data as uint64_t instead of chars array
7 years ago
Vsevolod Stakhov
3a98d054f5
[Minor] Add support for unix connections for redis stats backend
7 years ago
Vsevolod Stakhov
203de2ba03
[Fix] Fix autolearning errors and redis cache
7 years ago
Vsevolod Stakhov
d61a9525f0
[Feature] Read redis backend statistics configuration from global section
Issue: #766
7 years ago
Vsevolod Stakhov
18b2d65f76
[Fix] Fix timeouts in redis cache processing
8 years ago
Vsevolod Stakhov
da01d43036
[Feature] More sane configuration for redis statistics
8 years ago
Vsevolod Stakhov
7b04b58f69
Some fixes to the previous commit
8 years ago
Vsevolod Stakhov
d4cb66b556
Add auth support and db selection for redis stats
8 years ago
Vsevolod Stakhov
6bc5286496
Refactor UCL API
8 years ago
Vsevolod Stakhov
ad06636cc5
Don't fail stats when pre-results are set
8 years ago
Vsevolod Stakhov
8766fba694
Switch the rest to apache 2
8 years ago
Vsevolod Stakhov
df91fb12eb
Fix stupid misprint
8 years ago
Vsevolod Stakhov
393f4b5664
Fix redis cache config as well
8 years ago
Vsevolod Stakhov
320304671b
Fix include path for embedded hiredis
8 years ago
Vsevolod Stakhov
361fb11df8
Enable per-users learn cache
8 years ago
Vsevolod Stakhov
54fc24c2b3
Fix query
8 years ago
Vsevolod Stakhov
13371ea684
Rework cache API slightly
8 years ago
Vsevolod Stakhov
b9dd124a65
Implement redis cache operations
8 years ago