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

PlatformNotSupportedException - when setting MaxConnectionsPerServer

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0-dp3
    • Fix Version/s: 2.4.0
    • Component/s: docs, library
    • Labels:
      None

      Description

      From this review: http://review.couchbase.org/#/c/72835/ Matt Ingenthron asks: "... is this normal on .NET Core? It seems odd to me that something like HttpClient can have a different approach even down to a per-Linux distro basis."

      This ticket is to spend some time looking into this and come up with a generally acceptable approach.

        Attachments

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

          Activity

          Hide
          jmorris Jeff Morris added a comment -

          The underlying HttpClient implementation uses a wrapper around libcurl called CurlHandler. Within this implementation, there are various settings which if not supported by a particular version of Curl, will throw a (PlatformNotSupportedException) https://docs.microsoft.com/en-us/dotnet/core/api/system.platformnotsupportedexception. MaxConnectionsPerServer is can example of a setting which may or may not be supported by a particular version of libcurl installed on the host machine: https://github.com/dotnet/corefx/blob/master/src/System.Net.Http/src/System/Net/Http/Unix/CurlHandler.cs#L351-L373

          For this particular setting (MaxConnectionsPerServer), the following settings options are used: https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_HOST_CONNECTIONS.html

          This was added in Curl 7.30.0.

          Show
          jmorris Jeff Morris added a comment - The underlying HttpClient implementation uses a wrapper around libcurl called CurlHandler. Within this implementation, there are various settings which if not supported by a particular version of Curl, will throw a (PlatformNotSupportedException) https://docs.microsoft.com/en-us/dotnet/core/api/system.platformnotsupportedexception . MaxConnectionsPerServer is can example of a setting which may or may not be supported by a particular version of libcurl installed on the host machine: https://github.com/dotnet/corefx/blob/master/src/System.Net.Http/src/System/Net/Http/Unix/CurlHandler.cs#L351-L373 For this particular setting (MaxConnectionsPerServer), the following settings options are used: https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_HOST_CONNECTIONS.html This was added in Curl 7.30.0.
          Hide
          jmorris Jeff Morris added a comment -

          This should be included with documentation.

          Show
          jmorris Jeff Morris added a comment - This should be included with documentation.

            People

            • Assignee:
              jmorris Jeff Morris
              Reporter:
              jmorris Jeff Morris
            • 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.