@onlineapps/mq-client-core 1.0.76 → 1.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1722,7 +1722,7 @@ class RabbitMQClient extends EventEmitter {
|
|
|
1722
1722
|
this._reconnecting = true;
|
|
1723
1723
|
console.log(`[RabbitMQClient] Starting connection-level recovery (attempt ${this._reconnectAttempts + 1}/${this._maxReconnectAttempts})...`);
|
|
1724
1724
|
|
|
1725
|
-
while (this._reconnectAttempts < this._maxReconnectAttempts) {
|
|
1725
|
+
while (this._reconnectAttempts < this._maxReconnectAttempts && !this._disconnecting) {
|
|
1726
1726
|
try {
|
|
1727
1727
|
// Calculate exponential backoff delay: baseDelay * 2^attempts, capped at maxDelay
|
|
1728
1728
|
const delay = Math.min(
|
|
@@ -83,6 +83,7 @@ function classifyPublishError(err) {
|
|
|
83
83
|
message.includes('connection closed') ||
|
|
84
84
|
message.includes('connection ended') ||
|
|
85
85
|
message.includes('channel closed') ||
|
|
86
|
+
message.includes('channel is closed') ||
|
|
86
87
|
message.includes('channel ended') ||
|
|
87
88
|
message.includes('timeout') ||
|
|
88
89
|
message.includes('confirmation timeout') ||
|