Skip to content

The default configuration of httpclient will result in the CPoolEntry of the connection pool not being released, if the response code is not 200, 204, 400 #97

Description

@aiwoziyue
<dependency>
    <groupId>org.kairosdb</groupId>
    <artifactId>client</artifactId>
    <version>3.0.0</version>
</dependency>
com.proofpoint.http.client.UnexpectedResponseException: Expected response code to be [200, 204], but was 500: Internal Server Error
	at org.kairosdb.client.response.DefaultJsonResponseHandler.handle(DefaultJsonResponseHandler.java:70) ~[client-3.0.0.jar:na]
	at org.kairosdb.client.HttpClient.execute(HttpClient.java:331) ~[client-3.0.0.jar:na]
	at org.kairosdb.client.HttpClient.postData(HttpClient.java:291) ~[client-3.0.0.jar:na]
	at org.kairosdb.client.HttpClient.postData(HttpClient.java:273) ~[client-3.0.0.jar:na]
	at org.kairosdb.client.HttpClient.query(HttpClient.java:232) ~[client-3.0.0.jar:na]
...
Image

By default, each route has a maximum of two connections, and all others will be blocked

please help me

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions