Skip to content

[Bug] SubscriberClient::subscribe appears to hang on servers with no activity. #351

@ARitz-Cracker

Description

@ARitz-Cracker

Fred version - 10.1.0
Redis version - 8.0.2
Platform - Linux - Debian 12
Deployment type - centralized

Describe the bug

To Reproduce
Steps to reproduce the behavior:

  1. Use RedisBuilder::build_subscriber_client similar to the pubsub example
  2. Start a Redis server where this is the only client
  3. Wait forever

Additional notes
Looking at the inner-implementations, PubsubInterface::subscribe calls fred::commands::pubsub::subscribe, which calls utils::request_response, despite the fact that the SUBSCRIBE command is documented to not return a response.

Logs

2025-06-02T20:46:49.386206Z TRACE fred::interfaces: fred-J1PsfsMGdf: Sending command SUBSCRIBE (1) to router.

The current design of our application relies on pubsubs for synchronization, and so this is deadlocking our system.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions