1. Update readme. 2. As httpclient being created everytime, remove the “keepAliveStrategy”.
This commit is contained in:
parent
e8a427233c
commit
d1ebaf939d
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue