Skip to content

Commit

Permalink
Merge pull request #14501 from epmartini/patch-1
Browse files Browse the repository at this point in the history
chore: remove typo
  • Loading branch information
vkarpov15 committed Apr 8, 2024
2 parents 9221cc2 + abace24 commit 68a7f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/connections.md
Expand Up @@ -306,7 +306,7 @@ conn.on('close', () => console.log('close'));

<h2 id="keepAlive"><a href="#keepAlive">A note about keepAlive</a></h2>

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.

Expand Down

0 comments on commit 68a7f6d

Please sign in to comment.