Skip to content

Error: node_redis command queue state error. If you can reproduce this, please report it. #137

Closed
@twmobius

Description

@twmobius

Hello,

Using this snippet:

var redis = require('redis');

var subscriber = redis.createClient();
var publisher  = redis.createClient();

subscriber.on('message', function(channel, data) {
  console.log(data);

  subscriber.unsubscribe('test');
});

subscriber.subscribe('test');

setTimeout( function() {
  publisher.publish('test', 'Testing', function() {
    console.log("Published");
  });

  subscriber.unsubscribe('test');
}, 1000);

Crashes node-redis. In theory if the channel is already unsubscribed redis should not try to unsubscribe it again (If I understand why the error happens)

Great job btw :) Thank you!

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