[SERVER-29359] Enable SO_KEEPALIVE on egress server connections Created: 24/May/17  Updated: 30/Oct/23  Resolved: 25/Jun/18

Status: Closed
Project: Core Server
Component/s: Networking
Affects Version/s: None
Fix Version/s: 3.4.16, 3.6.6

Type: Improvement Priority: Major - P3
Reporter: Samantha Ritter (Inactive) Assignee: Nathan Orttung
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-29341 Set TCP_KEEPIDLE and TCP_KEEPINTVL (o... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.4
Participants:

 Description   

ASIO supports turning this option on, though it does not allow custom values: http://think-async.com/Asio/asio-1.10.6/doc/asio/reference/socket_base/keep_alive.html



 Comments   
Comment by Githook User [ 28/Jun/18 ]

Author:

{'username': 'norttung', 'name': 'Nathan Orttung', 'email': 'nathan@orttung.com'}

Message: SERVER-29359 SO_KEEPALIVE for nia sockets

Previously had not set keepalives for egress sockets on executors, this fixes that.

(cherry picked from commit bcacc4929dcddc4e6c380aa41b2db730245de244)
Branch: v3.4
https://github.com/mongodb/mongo/commit/95b28a323db94dcde627702289dea8a76232ece4

Comment by Githook User [ 28/Jun/18 ]

Author:

{'username': 'norttung', 'name': 'Nathan Orttung', 'email': 'nathan@orttung.com'}

Message: Revert "SERVER-29359 SO_KEEPALIVE for nia sockets"

This reverts commit c09bb6672e4521ac8c831209da8c70623b17ad5b.
Branch: v3.4
https://github.com/mongodb/mongo/commit/69b8730c1d7ea16b405813c231c2030cdf73afb5

Comment by Githook User [ 28/Jun/18 ]

Author:

{'username': 'norttung', 'name': 'Nathan Orttung', 'email': 'nathan@orttung.com'}

Message: SERVER-29359 SO_KEEPALIVE for async-secure-stream

Added calls to async-secure-streams to enable TCP KEEPALIVE and set params
Branch: v3.6
https://github.com/mongodb/mongo/commit/d932f54d42cd41a74b8e3c9a0891e55f8d307f10

Comment by Githook User [ 28/Jun/18 ]

Author:

{'username': 'norttung', 'name': 'Nathan Orttung', 'email': 'nathan@orttung.com'}

Message: SERVER-29359 SO_KEEPALIVE for nia sockets

Previously had not set keepalives for egress sockets on executors, this fixes that.
Branch: v3.4
https://github.com/mongodb/mongo/commit/c09bb6672e4521ac8c831209da8c70623b17ad5b

Comment by Githook User [ 25/Jun/18 ]

Author:

{'username': 'norttung', 'name': 'Nathan Orttung', 'email': 'nathan@orttung.com'}

Message: SERVER-29359 SO_KEEPALIVE for nia sockets

Previously had not set keepalives for egress sockets on executors, this fixes that.
Branch: v3.6
https://github.com/mongodb/mongo/commit/bcacc4929dcddc4e6c380aa41b2db730245de244

Comment by Mira Carey [ 08/Jun/18 ]

This is gone away in 4.0, but still and problem in 3.2, 3.4 and 3.6

Comment by Jonathan Reams [ 13/Apr/18 ]

This was resolved in SERVER-33821

Generated at Thu Feb 08 04:20:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.