Fix/add timeout blocking commands#2052
Merged
PavelPashov merged 7 commits intoredis:mainfrom Jan 5, 2026
Merged
Conversation
- Blocking commands (BLPOP, BRPOP, BZPOPMIN, XREAD, etc.) now resolve with `null` when their timeout expires without a response, matching Redis behavior and preventing indefinite hangs during undetectable network failures - Added `blockingTimeout` option as a safety net for commands that block forever (timeout=0 / BLOCK 0) - Automatically extracts and tracks timeout from command arguments, adding a 100ms grace period for finite timeouts - Protects commands in both offline queue and command queue with absolute deadline tracking - Simplified setBlockingTimeout API to resolve with null (no callback, no error rejection)
Contributor
|
Hey @manast, thanks for creating this I’ll look it over when I have time and circle back |
Contributor
PavelPashov
reviewed
Dec 19, 2025
github-actions bot
pushed a commit
that referenced
this pull request
Jan 5, 2026
# [5.9.0](v5.8.2...v5.9.0) (2026-01-05) ### Bug Fixes * remove unnecessary case-sensitivity when working with commands ([#2036](#2036)) ([f33a2c8](f33a2c8)) ### Features * add timeout blocking commands ([#2052](#2052)) ([6ec78be](6ec78be)) * **cluster:** refactor sharded pub/sub v5 ([#2043](#2043)) ([a523f3a](a523f3a))
|
🎉 This PR is included in version 5.9.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This was referenced Jan 11, 2026
This was referenced Feb 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1888