Groups
Sign in
Groups
Mongoose Node.JS ODM
Conversations
Labels
About
Send feedback
Help
Clearance about socket options keepAlive, socketTimeoutMS and connectTimeoutMS
23 views
connection
Skip to first unread message
Paul Klimashkin
unread,
Oct 20, 2015, 2:06:48 PM
10/20/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mongoose Node.JS ODM
Hello!
In docs said that
For long running applictions it is often prudent to enable keepAlive
socketOptions
:
{
keepAlive
:
1
}
But in code I see that enabling of keepAlive depends of
typeof options.socketOptions.keepAlive == 'number'
. So I can use
keepAlive: 0
?
But for options socketTimeoutMS and connectTimeoutMS conditions lokks like this:
if
(
options
.
socketOptions
.
socketTimeoutMS
)
{
So I can't use zero values for them?
Reply all
Reply to author
Forward
0 new messages