Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1211

Error Bootstrapping Using .Net Core on Linux Due To Socket Keep Alives

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.9
    • Fix Version/s: 2.4.0-dp1, 2.3.9
    • Component/s: library
    • Labels:
    • Environment:
      Linux

      Description

      Exception occurs setting socket keep alives when running on Linux:

      2016/10/01 03:28:48:109 [INFO] Couchbase.IO.ConnectionPool`1[[Couchbase.IO.IConnection, Couchbase.NetClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]] - Node 10.34.69.102:11210 failed to initialize, reason: System.PlatformNotSupportedException: Operation is not supported on this platform.
      at System.Net.Sockets.SocketPal.WindowsIoctl(SafeCloseSocket handle, Int32 ioControlCode, Byte[] optionInValue, Byte[] optionOutValue, Int32& optionLength)
      at System.Net.Sockets.Socket.IOControl(Int32 ioControlCode, Byte[] optionInValue, Byte[] optionOutValue)
      at Couchbase.IO.Utils.SocketExtensions.SetKeepAlives(Socket socket, Boolean on, UInt32 time, UInt32 interval)
      at Couchbase.IO.DefaultConnectionFactory.<>c_0`1.<GetGeneric>b_0_0(IConnectionPool`1 p, IByteConverter c, BufferAllocator b)
      at Couchbase.IO.ConnectionPool`1.Initialize()

      The Socket.IOControl method doesn't appear to be supported on Linux for keep alives.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              btburnett3 Brant Burnett
              Reporter:
              btburnett3 Brant Burnett
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.