1. Update readme. 2. As httpclient being created everytime, remove the “keepAliveStrategy”.

This commit is contained in:
wusheng 2017-04-04 23:03:42 +08:00
parent e8a427233c
commit d1ebaf939d
2 changed files with 2 additions and 4 deletions

View File

@ -48,4 +48,4 @@ _In chronological order_
# Document
* [WIKI](https://github.com/wu-sheng/sky-walking/wiki)
_As a Chinese Developer, you can join QQ Group: 392443393, and **Tagged** Sky-Walking. Or chat with us on gitter, in English._
_Chat with us on gitter, in English. As a Chinese Developer, you can join QQ Group: 392443393, and **Tagged** Sky-Walking._

View File

@ -88,9 +88,7 @@ public class CollectorClient implements Runnable {
.excludeFieldsWithoutExposeAnnotation()
.create();
String messageJson = gson.toJson(message);
CloseableHttpClient httpClient = HttpClients.custom()
.setKeepAliveStrategy(new DefaultConnectionKeepAliveStrategy())
.build();
CloseableHttpClient httpClient = HttpClients.custom().build();
try {
HttpPost httpPost = ready2Send(messageJson);
if (httpPost != null) {