Comments (5)
I can't repro this, I did do a small race fix that may help. Its also in #27
If you have repro steps or turn on debugging AMQP=3 DEBUG=*
and send some logs ill have look.
from amqp-coffee.
- to stop receiving consumerCount after reconnect, try this:
- launch code https://gist.github.com/vkfont/65d77cf461c075ebba60
- restart service
- if you get similar output (
consumers count: 1
not displaying after reconnect) then bug is reproducing:
connected to rabbit@Andreys-Air v3.5.0
queue "named-queue-test" created
message received: #1
try to get consumers count for queue...
consumers count: 1
message received: #2
try to get consumers count for queue...
consumers count: 1
message received: #3
try to get consumers count for queue...
consumers count: 1
message received: #4
connection is closed: 3634ms
try to get consumers count for queue...
try to get consumers count for queue...
try to get consumers count for queue...
try to get consumers count for queue...
connected to rabbit@Andreys-Air v3.5.0
message received: #5
try to get consumers count for queue...
message received: #6
try to get consumers count for queue...
message received: #7
try to get consumers count for queue...
message received: #8
try to get consumers count for queue...
message received: #9
- i get error during .consumerCount call on unnamed queue, but im not sure is it bug of protocol feature:
/Users/drago/Documents/amqp-coffee/bin/src/lib/Queue.js:133
return cb(err, res.consumerCount);
^
TypeError: Cannot read property 'consumerCount' of undefined
at /Users/drago/Documents/amqp-coffee/bin/src/lib/Queue.js:133:27
at /Users/drago/Documents/amqp-coffee/bin/src/lib/Queue.js:69:43
at doneFn (/Users/drago/Documents/amqp-coffee/bin/src/lib/Channel.js:241:11)
at TemporaryChannel.Channel._onChannelMethod (/Users/drago/Documents/amqp-coffee/bin/src/lib/Channel.js:336:71)
at Connection._onMethod (/Users/drago/Documents/amqp-coffee/bin/src/lib/Connection.js:601:39)
at AMQPParser.<anonymous> (/Users/drago/Documents/amqp-coffee/bin/src/lib/Connection.js:4:61)
at AMQPParser.emit (events.js:118:17)
at AMQPParser.parseMethodFrame (/Users/drago/Documents/amqp-coffee/bin/src/lib/AMQPParser.js:110:19)
at AMQPParser.frameEnd (/Users/drago/Documents/amqp-coffee/bin/src/lib/AMQPParser.js:80:16)
at AMQPParser.frame (/Users/drago/Documents/amqp-coffee/bin/src/lib/AMQPParser.js:63:21)
from amqp-coffee.
Thanks for that repro! Its fixed in #27 now and wrote some tests based on your repro.
from amqp-coffee.
its published to npm as 0.1.21-rc1 right now if you want to try it
from amqp-coffee.
cool, thank you
everything works
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.