diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-06 14:32:19 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-06 14:32:19 +0000 |
commit | 8b7e04c87a0ee317fbcdccf47e32b208b6e67567 (patch) | |
tree | ad9f97810198fa14de1ac6821b1663fc6f9a952f /src/libserver/redis_pool.c | |
parent | 3d5d2d6f808761c2398d86f94e3cc18b320986c0 (diff) | |
download | rspamd-8b7e04c87a0ee317fbcdccf47e32b208b6e67567.tar.gz rspamd-8b7e04c87a0ee317fbcdccf47e32b208b6e67567.zip |
[Feature] Improve url redirector module
- Use HEAD instead of GET
- Limit body length
- Check for cached results before testing them on HTTP
- Really limit number of nested queries
Diffstat (limited to 'src/libserver/redis_pool.c')
-rw-r--r-- | src/libserver/redis_pool.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libserver/redis_pool.c b/src/libserver/redis_pool.c index 6aa4b6565..5cb898648 100644 --- a/src/libserver/redis_pool.c +++ b/src/libserver/redis_pool.c @@ -251,6 +251,7 @@ rspamd_redis_pool_new_connection (struct rspamd_redis_pool *pool, if (ctx) { if (ctx->err != REDIS_OK) { + msg_err ("cannot connect to redis: %s", ctx->errstr); redisAsyncFree (ctx); return NULL; |