Skip to content

Doesn't timeout properly when server is unreachable #587

@celesteking

Description

@celesteking
 var r = require('redis').createClient(null, '1.2.3.4', {connect_timeout: 1000}); r.on('ready', function(){ console.log('ready!'); }).on('error', function(err){ console.log('error: ' + err)});

It doesn't timeout after 1 second. It does timeout after unknown amount of time with:

error: Error: Redis connection to 1.2.3.4:6379 failed - connect ETIMEDOUT

I think it should follow the docs and error out after specified timeout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions