Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aiwoziyue opened this issue Mar 24, 2025 · 0 comments

Comments

@aiwoziyue
Copy link

aiwoziyue commented Mar 24, 2025

<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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant