# Rest client persistent connection

**URL:** <https://discuss.elastic.co/t/rest-client-persistent-connection/154901>\
**Category:** Elasticsearch\
**Created:** [October 31, 2018, 5:40pm UTC](https://discuss.elastic.co/t/rest-client-persistent-connection/154901 "2018-10-31T17:40:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishnugt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishnugt/32/22026_2.png) [@vishnugt](https://discuss.elastic.co/u/vishnugt)\
**Post date:** [October 31, 2018, 5:40pm UTC](https://discuss.elastic.co/t/rest-client-persistent-connection/154901/1 "2018-10-31T17:40:35Z")

</div>

Hey all,

While using low level rest client, a netstat revealed that a large number of TCP connections are in TIME\_WAIT state. While I understand that TIME\_WAIT is a proper TCP state and there is not going to be any immediate problem with it, I'm worried it'll have a performance degradation. Is there a way to make the connections made by the rest client to be persistent so that it doesn't open new TCP connections?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 28, 2018, 5:40pm UTC](https://discuss.elastic.co/t/rest-client-persistent-connection/154901/2 "2018-11-28T17:40:38Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
