Hi there,
I was verifying how service behaves when RabbitMQ gets restarted, etc. and I've got the following:
Error: Connection closed: 320 (CONNECTION-FORCED) with message "CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'"
at Object.accept (../node_modules/amqplib/lib/connection.js:89:32)
at Connection.mainAccept [as accept] (../node_modules/amqplib/lib/connection.js:62:33)
at Socket.go (../node_modules/amqplib/lib/connection.js:459:48)
at Socket.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:426:10)
at emitReadable (_stream_readable.js:422:5)
at readableAddChunk (_stream_readable.js:165:9)
at Socket.Readable.push (_stream_readable.js:127:10)
at TCP.onread (net.js:528:21)
It was absolutely usual RabbitMQ restart procedure and service crashed because it was expecting to get close event, but not error.
In my opinion there should be no error event when library gets 320 code from RabbitMQ. Even though it's called CONNECTION-FORCED, there is nothing wrong happened.
Hi there,
I was verifying how service behaves when RabbitMQ gets restarted, etc. and I've got the following:
It was absolutely usual RabbitMQ restart procedure and service crashed because it was expecting to get
closeevent, but noterror.In my opinion there should be no
errorevent when library gets320code from RabbitMQ. Even though it's calledCONNECTION-FORCED, there is nothing wrong happened.