Skip to content

Conversation

@Mpdreamz
Copy link
Member

so you do not need to subclass HttpConnection and override AlterServicePoint() to set it.

Sidenote:

I also added an Obsolete on HttpClientConnection indicating its not as well tested as HttpConnection and as a heads up that with Elasticsearch.NET/NEST 2.0 we'll be moving the default HttpConnection over to HttpClient anyway.

Im still not totally sure about moving over to HttpClient though, yes its a nicer interface, but there is a real benefit of having a true synchronous code path without the overhead of async dispatching even if that happens on IOCP threads. Calling .Result on a task is not really equivalent.

We might endup ifdeffing HttpConnection specifically for aspnetcore50, still lots to research and measure :)

@gmarz
Copy link
Contributor

gmarz commented Feb 25, 2015

LGTM 👍

gmarz added a commit that referenced this pull request Feb 25, 2015
…keep-alive

expose SetTcpKeepAlive() on ConnectionSettings
@gmarz gmarz merged commit 8cf600b into develop Feb 25, 2015
@gmarz gmarz deleted the feature/configurable-tcp-keep-alive branch February 25, 2015 15:00
@gmarz gmarz added the v1.4.2 label Feb 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants