1
0
mirror of https://github.com/apache/httpd.git synced 2026-10-23 22:49:01 +03:00
Files
apache/modules/cache
Joe Orton 8dbd2836d0 mod_socache_redis: Fix the unit of the RedisTimeout passed to the Redis
client.

* modules/cache/mod_socache_redis.c
  (RD_DEFAULT_SERVER_RWTO): Define in seconds rather than microseconds.
  (socache_rd_set_timeout): Convert the timeout from apr_time_t to whole
  seconds, rounding up so a positive value does not become 0.

* test/modules/ssl/env.py
  (SSLTestSetup.__init__): Add socache_redis as an optional module.

* test/modules/ssl/test_004_socache_redis.py: New test using a silent
  Redis server to verify that RedisTimeout values are applied with the
  expected whole-second rounding.

Submitted by: Christophe JAILLET, Arturo Bernal <abernal apache.org>
GitHub: closes #790


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1938833 13f79535-47bb-0310-9956-ffa450edef68
2026-10-06 20:16:47 +00:00
..
2025-12-16 16:11:24 +00:00
2021-06-24 14:17:02 +00:00