()
| 8732 | pool[kWeight] = Math.max(1, pool[kWeight] - this[kErrorPenalty]); |
| 8733 | this._updateBalancedPoolStats(); |
| 8734 | }); |
| 8735 | pool.on("disconnect", (...args) => { |
| 8736 | const err = args[2]; |
| 8737 | if (err && err.code === "UND_ERR_SOCKET") { |
| 8738 | pool[kWeight] = Math.max(1, pool[kWeight] - this[kErrorPenalty]); |
| 8739 | this._updateBalancedPoolStats(); |
| 8740 | } |
| 8741 | }); |
| 8742 | for (const client of this[kClients]) { |
| 8743 | client[kWeight] = this[kMaxWeightPerServer]; |
no test coverage detected