Skip to content

Commit

Permalink
chore: remove typo
Browse files Browse the repository at this point in the history
  • Loading branch information
epmartini authored Apr 5, 2024
1 parent 4ea42d2 commit abace24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/connections.md
Original file line number Diff line number Diff line change
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 abace24

Please sign in to comment.