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 @@ -120,7 +120,7 @@ public virtual async Task<ElasticsearchResponse<TReturn>> RequestAsync<TReturn>(
120120
121121 private static readonly string MissingConnectionLimitMethodError =
122122 $ "Your target platform does not support { nameof ( ConnectionConfiguration . ConnectionLimit ) } "
123- + $ " please set { nameof ( ConnectionConfiguration . ConnectionLimit ) } to -1 on your connection configuration."
123+ + $ " please set { nameof ( ConnectionConfiguration . ConnectionLimit ) } to -1 on your connection configuration/settings ."
124124 + $ " this will cause the { nameof ( HttpClientHandler . MaxConnectionsPerServer ) } not to be set on { nameof ( HttpClientHandler ) } ";
125125
126126 protected virtual HttpClientHandler CreateHttpClientHandler ( RequestData requestData )
@@ -141,6 +141,10 @@ protected virtual HttpClientHandler CreateHttpClientHandler(RequestData requestD
141141 {
142142 throw new Exception ( MissingConnectionLimitMethodError , e ) ;
143143 }
144+ catch ( PlatformNotSupportedException e )
145+ {
146+ throw new Exception ( MissingConnectionLimitMethodError , e ) ;
147+ }
144148 }
145149
146150 if ( ! requestData . ProxyAddress . IsNullOrEmpty ( ) )
You can’t perform that action at this time.
0 commit comments