Skip to content

Redis connection timeouts causing protocol errors #127

Description

@jhurliman

I have an issue where node_redis is auto-reconnecting to redis and all queries hang indefinitely afterward. This is a related issue to that, where occasionally I will see one of the hung connections terminate with these kind of errors:

9 Aug 19:04:26 - error: Redis error: Error: Redis reply parser error: Error: Protocol error, got "\n" as reply type byte
    at HiredisReplyParser.execute (.../node_modules/redis/lib/parser/hiredis.js:31:37)
    at RedisClient.on_data (.../node_modules/redis/index.js:358:27)
    at Socket.<anonymous> (.../node_modules/redis/index.js:93:14)
    at Socket.emit (events.js:64:17)
    at Socket._onReadable (net.js:678:14)
    at IOWatcher.onReadable [as callback] (net.js:177:10)

9 Aug 19:14:27 - error: Redis error: Error: Redis reply parser error: Error: Protocol error, got "r" as reply type byte
    at HiredisReplyParser.execute (.../node_modules/redis/lib/parser/hiredis.js:31:37)
    at RedisClient.on_data (.../node_modules/redis/index.js:358:27)
    at Socket.<anonymous> (.../node_modules/redis/index.js:93:14)
    at Socket.emit (events.js:64:17)
    at Socket._onReadable (net.js:678:14)
    at IOWatcher.onReadable [as callback] (net.js:177:10)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions