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

Fix default connection timeout #563

Merged
merged 1 commit into from
Jul 12, 2021

Conversation

wolfstudy
Copy link
Member

@wolfstudy wolfstudy commented Jul 12, 2021

Signed-off-by: xiaolongran xiaolongran@tencent.com

Motivation

In Java SDK, the default connection timeout is 10 sec

private int connectionTimeoutMs = 10000;

The problem here is that when the load of the broker is high, there is no way to complete the processing and creation of the connection within 5s, which will cause the client to constantly create new connections and try to establish a connection with the broker, and the broker Continuously disconnecting from the client, forming a vicious circle

Modifications

Replace 5 sec of connection timeout with 10 sec

Signed-off-by: xiaolongran <xiaolongran@tencent.com>
@wolfstudy wolfstudy self-assigned this Jul 12, 2021
@wolfstudy wolfstudy added this to the 0.6.0 milestone Jul 12, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants