Skip to content

Commit

Permalink
update the default connectTimeoutMs to 60s
Browse files Browse the repository at this point in the history
  • Loading branch information
whhe committed Sep 13, 2024
1 parent f3ef7fb commit cc9880c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/quickstart/logproxy-client-tutorial-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ LogProxy 客户端还可以通过 `ClientConf` 配置一些客户端行为相关
<tr>
<td>connectTimeoutMs</td>
<td>否</td>
<td style="word-wrap: break-word;">5000</td>
<td style="word-wrap: break-word;">60000</td>
<td>Int</td>
<td>connectTimeoutMs</td>
<td>连接超时时间(以毫秒为单位)。</td>
Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart/logproxy-client-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ There are also some configurations for the client in `ClientConf`:
<tr>
<td>connectTimeoutMs</td>
<td>false</td>
<td style="word-wrap: break-word;">5000</td>
<td style="word-wrap: break-word;">60000</td>
<td>Int</td>
<td>connectTimeoutMs</td>
<td>Connection timeout in milliseconds.</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public static Builder builder() {
/** ClientConf builder with default values. */
public static class Builder {
private int transferQueueSize = 20000;
private int connectTimeoutMs = 5000;
private int connectTimeoutMs = 60000;
private int readWaitTimeMs = 2000;
private int retryIntervalS = 2;
private int maxReconnectTimes = -1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class ClientConfTest {
public void testBuilderDefaultValues() {
ClientConf clientConf = ClientConf.builder().build();
Assert.assertEquals(clientConf.getTransferQueueSize(), 20000);
Assert.assertEquals(clientConf.getConnectTimeoutMs(), 5000);
Assert.assertEquals(clientConf.getConnectTimeoutMs(), 60000);
Assert.assertEquals(clientConf.getReadWaitTimeMs(), 2000);
Assert.assertEquals(clientConf.getRetryIntervalS(), 2);
Assert.assertEquals(clientConf.getMaxReconnectTimes(), -1);
Expand Down

0 comments on commit cc9880c

Please sign in to comment.