File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/Elasticsearch.Net/Connection Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ public virtual async Task<ElasticsearchResponse<TReturn>> RequestAsync<TReturn>(
116
116
117
117
private static readonly string MissingConnectionLimitMethodError =
118
118
$ "Your target platform does not support { nameof ( ConnectionConfiguration . ConnectionLimit ) } "
119
- + $ " please set { nameof ( ConnectionConfiguration . ConnectionLimit ) } to -1 on your connection configuration."
119
+ + $ " please set { nameof ( ConnectionConfiguration . ConnectionLimit ) } to -1 on your connection configuration/settings ."
120
120
+ $ " this will cause the { nameof ( HttpClientHandler . MaxConnectionsPerServer ) } not to be set on { nameof ( HttpClientHandler ) } ";
121
121
122
122
protected virtual HttpClientHandler CreateHttpClientHandler ( RequestData requestData )
@@ -137,6 +137,10 @@ protected virtual HttpClientHandler CreateHttpClientHandler(RequestData requestD
137
137
{
138
138
throw new Exception ( MissingConnectionLimitMethodError , e ) ;
139
139
}
140
+ catch ( PlatformNotSupportedException e )
141
+ {
142
+ throw new Exception ( MissingConnectionLimitMethodError , e ) ;
143
+ }
140
144
}
141
145
142
146
if ( ! requestData . ProxyAddress . IsNullOrEmpty ( ) )
You can’t perform that action at this time.
0 commit comments