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

PlatformNotSupportedException - when setting MaxConnectionsPerServer

    XMLWordPrintable

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0-dp3
    • 2.4.0
    • docs, library
    • 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

          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.

          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.
          jmorris Jeff Morris added a comment -

          This should be included with documentation.

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

          People

            jmorris Jeff Morris
            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