From abace24316b21621298dd3b2fe1c53300ce3ba64 Mon Sep 17 00:00:00 2001 From: Patrick Martini Date: Fri, 5 Apr 2024 13:04:46 +0200 Subject: [PATCH] chore: remove typo --- docs/connections.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/connections.md b/docs/connections.md index d9fe9b62e30..aef11bfba61 100644 --- a/docs/connections.md +++ b/docs/connections.md @@ -306,7 +306,7 @@ conn.on('close', () => console.log('close'));

A note about keepAlive

-Before Mongoose 5.2.0, you needed to enable the `keepAlive` option to initiate [TCP keepalive](https://tldp.org/HOWTO/TCP-Keepalive-HOWTO/overview.html) to prevent `"connection closed"` errors errors. +Before Mongoose 5.2.0, you needed to enable the `keepAlive` option to initiate [TCP keepalive](https://tldp.org/HOWTO/TCP-Keepalive-HOWTO/overview.html) to prevent `"connection closed"` errors. However, `keepAlive` has been `true` by default since Mongoose 5.2.0, and the `keepAlive` is deprecated as of Mongoose 7.2.0. Please remove `keepAlive` and `keepAliveInitialDelay` options from your Mongoose connections.