Giter VIP home page Giter VIP logo

Comments (8)

barshow avatar barshow commented on June 26, 2024

@janajri thanks for this report. found a potential problem if you had temporary channels automatically closing between reconnects. #37 fixes it, its also to published to npm as [email protected] ill push it to master probably tomorrow

from amqp-coffee.

janajri avatar janajri commented on June 26, 2024

@barshow sounds good, glad we could resolve this before the next release.

from amqp-coffee.

janajri avatar janajri commented on June 26, 2024

So...it appears we've got some very unexpected behavior occurring here. We've been using "version": "0.1.23-rc5" however recently got one of these:

  • "TypeError: Cannot call method 'reset' of undefined\n at .../node_modules/amqp-coffee/bin/src/lib/Connection.js:418

The codes looks to have compiled correctly:


    Connection.prototype._reestablishChannels = function() {
      var _this = this;
      return async.forEachSeries(_.keys(this.channels), function(channel, done) {
        if (channel === "0") {
          return done();
        } else {
          if (_this.channelManager.isChannelClosed[channel]) {
            return done();
          } else {
            return _this.channels[channel].reset(done);
          }
        }
      });
    };

Any ideas?

from amqp-coffee.

janajri avatar janajri commented on June 26, 2024

I'll try to find a way to reproduce this issue. We're currently using the library to open/close channels at a relatively high rate. We have a bunch of mobile consumers globally that are continually connecting/disconnecting to a rabbit cluster located in a single region. From my understanding it's probably not a good idea to be constantly opening and closing these channels/consumers but have not found a better way to handle this just yet.

from amqp-coffee.

barshow avatar barshow commented on June 26, 2024

It has to be something around disconnecting & reconnecting a temporary channel where the channel doesn't get fully cleaned up. 2de31a5 will fix it. Im going to push it up to 0.1.23 once the tests pass

from amqp-coffee.

barshow avatar barshow commented on June 26, 2024

published to 0.1.23

from amqp-coffee.

janajri avatar janajri commented on June 26, 2024

@barshow thanks again for the quick response. I'll keep you posted if I find a way to reproduce.

from amqp-coffee.

barshow avatar barshow commented on June 26, 2024

Sure thing. It would be awesome to figure out what up with the channel thats causing that.

from amqp-coffee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.