runtime: CurlHandler.MaxConnectionsPerServer unsupported on Centos 7
Steps to reproduce
run the following statements:
var client = new System.Net.Http.HttpClientHandler();
client.MaxConnectionsPerServer = 8; // any value >= 1
Expected behavior
no exceptions.
Actual behavior
Unhandled Exception: System.PlatformNotSupportedException: Unknown option
at System.Net.Http.CurlHandler.set_MaxConnectionsPerServer(Int32 value)
at System.Net.Http.HttpClientHandler.set_MaxConnectionsPerServer(Int32 value)
at ConsoleApplication.Program.Main(String[] args)
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-preview2-1-003177)
Product Information:
Version: 1.0.0-preview2-1-003177
Commit SHA-1 hash: a2df9c2576
Runtime Environment:
OS Name: centos
OS Version: 7
OS Platform: Linux
RID: centos.7-x64
Comments
it appears to only affect Centos. it works fine on Ubuntu.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 40 (35 by maintainers)
@karelz For rhel, we build .net core from source. We consider this a must as part of our long-term support commitment. The outcome is a software collection (scl), which includes dotnet but also dependent libraries such as libcurl. The user ‘enables’ the software collection, which makes the dotnet binary available and makes uses of the scl specific libraries. The dotnet install procedure for rhel explains the steps to install and enable the software collection: https://www.microsoft.com/net/core#linuxredhat.