Skip to content

Commit 5f3bb4f

Browse files
[Backport 7.8] client.Timeout was not being set after refactoring introduced in #4673 (#4847)
Specifically: https://github.com/elastic/elasticsearch-net/pull/4673/files#diff-6c7514b4a5a813d5985444b99a4f7a4fL167 Co-authored-by: Martijn Laarman <Mpdreamz@gmail.com>
1 parent 7626ef6 commit 5f3bb4f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Elasticsearch.Net/Connection/HandlerTracking/RequestDataHttpClientFactory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public HttpClient CreateClient(RequestData requestData)
8585
var key = HttpConnection.GetClientKey(requestData);
8686
var handler = CreateHandler(key, requestData);
8787
var client = new HttpClient(handler, disposeHandler: false);
88+
client.Timeout = requestData.RequestTimeout;
8889
return client;
8990
}
9091

src/Elasticsearch.Net/Connection/HttpConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
33
// See the LICENSE file in the project root for more information
44

5-
#if DOTNETCORE
5+
#if DOTNETCORE
66
using System;
77
using System.Collections.Concurrent;
88
using System.Collections.Generic;

0 commit comments

Comments
 (0)