提交 d1ebaf93 编写于 作者: wu-sheng's avatar wu-sheng

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

上级 e8a42723
......@@ -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._
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册