[CSHARP-1994] Enable and configure TCP Keepalive by default Created: 06/Jun/17  Updated: 28/Oct/23  Resolved: 02/Nov/18

Status: Closed
Project: C# Driver
Component/s: Connectivity
Affects Version/s: None
Fix Version/s: 2.7.1

Type: Improvement Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: Robert Stam
Resolution: Fixed Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-383 Enable and configure TCP Keepalive by... Closed
Related
is related to CSHARP-1303 Socket Connection Error in 2.0 Driver Closed
Case:

 Comments   
Comment by Githook User [ 06/Nov/18 ]

Author:

{'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}

Message: CSHARP-1994: Fix build error due to malformed comment.
Branch: v2.7.x
https://github.com/mongodb/mongo-csharp-driver/commit/07f716c6265a4fd92b10db48b176957e83c161a7

Comment by Githook User [ 06/Nov/18 ]

Author:

{'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}

Message: CSHARP-1994: Added tests.
Branch: v2.7.x
https://github.com/mongodb/mongo-csharp-driver/commit/ec6e02f5815ca2e7703a15dd770624231996b1cb

Comment by Githook User [ 06/Nov/18 ]

Author:

{'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}

Message: CSHARP-1994: Enable and configure TCP Keepalive by default.
Branch: v2.7.x
https://github.com/mongodb/mongo-csharp-driver/commit/2497f98c94a71e415cb738ba740aa00cb79b33c4

Comment by Githook User [ 05/Nov/18 ]

Author:

{'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}

Message: CSHARP-1994: Fix build error due to malformed comment.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/3233d55747a268e5af10ab46ca05c287d6993766

Comment by Githook User [ 02/Nov/18 ]

Author:

{'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}

Message: CSHARP-1994: Added tests.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/56359c189ec79fd8738c08d64ade6eba82712818

Comment by Githook User [ 02/Nov/18 ]

Author:

{'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}

Message: CSHARP-1994: Enable and configure TCP Keepalive by default.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/cb3510018cef38a0b068ae473301639e6a56d5f3

Comment by Alejandro Villarreal [ 09/May/18 ]

Question about this, and the related issue of flaky connectivity with apps that are deployed to Azure (e.g. CSHARP-1303)... I understand that no socket-level keep-alive is being used by default right now, but if the "heartbeatFrequencyMS" of the connection string is 60 (or 10) seconds as documented here shouldn't that have the same effect? If heartbeats are being sent every 60 (or 10) seconds, that should keep the connection alive, and Azure shouldn't kill it. Or do heartbeats happen on a separate connection, not the same ones used for application traffic?

Generated at Wed Feb 07 21:41:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.