Log warning when TCPKeepAlive cannot be enabled

Description

Currently, we set TCPKeepAlive, but do not warn if it fails to set. It would be nice to have a warning log entry that indicates the environment declined.

On 2.7:
https://github.com/couchbase/couchbase-net-client/blob/release27/Src/Couchbase/IO/Utils/SocketExtensions.cs#L17-L41

Also, note that even if it is set, I believe that doesn't guarantee that TCPKeepAlive will be honored in all environments. I have experience with some setups where it may be advisory only.

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created May 5, 2020 at 9:18 PM
Updated August 31, 2024 at 11:01 AM
Resolved May 9, 2020 at 1:30 AM
Instabug