Comments (8)
@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.
@barshow sounds good, glad we could resolve this before the next release.
from amqp-coffee.
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.
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.
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.
published to 0.1.23
from amqp-coffee.
@barshow thanks again for the quick response. I'll keep you posted if I find a way to reproduce.
from amqp-coffee.
Sure thing. It would be awesome to figure out what up with the channel thats causing that.
from amqp-coffee.
Related Issues (20)
- Design question HOT 6
- typo in the description? HOT 1
- nodejs 4.x and 5.x support. HOT 1
- release master, add tags, etc HOT 1
- Handle method.basicCancel HOT 3
- handle connection blocked / unblocked notifications
- high latency on VM machines HOT 12
- working with activeMQ? HOT 2
- support for exchange to exchange routing HOT 1
- Error: Unmatched field {"name":"queue","domain":"shortstr"} HOT 1
- Performing a Connection Healthcheck HOT 1
- NPM warning when installing
- AMQPParser throw an error: Oversize frame 131318 HOT 7
- node-uuid -> uuid, pin versions for deps HOT 4
- Message handler not fired for blank message in QOS mode HOT 3
- Problem with contentType of published messages HOT 2
- direct reply-to & bug in the fields serialization HOT 4
- Connection continuously emits 'error' after the underlying socket died (reconnect = false)
- Publish hangs forever after connection loss (reconnect = false)
- Not able to connect to RabbitMQ cluster setup on Play with docker HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amqp-coffee.