Skip to content

Fix Redis read/write timeout units - #790

Closed
arturobernalg wants to merge 1 commit into
apache:trunkfrom
arturobernalg:fix/httpd-70193-redis-timeout-units
Closed

arturobernalg wants to merge 1 commit into
apache:trunkfrom
arturobernalg:fix/httpd-70193-redis-timeout-units

Conversation

@arturobernalg

@arturobernalg arturobernalg commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

mod_socache_redis passes RedisTimeout to apr_redis_server_create() in
microseconds, while the APR API expects whole seconds. As a result the
timeout was effectively infinite.

Convert to seconds when creating the server, rounding up so that a
positive timeout never becomes 0.

PR 70193

PR: 70193

Based on the patch by Christophe JAILLET in Bugzilla attachment 40212.
@arturobernalg
arturobernalg force-pushed the fix/httpd-70193-redis-timeout-units branch from 8c522da to 186d37c Compare October 6, 2026 18:04
@notroj

notroj commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Thanks, again, nice PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants