-
Notifications
You must be signed in to change notification settings - Fork 578
http read timeout 30 #159
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
Comments
You can set socketTimeout and dataTransferTimeout through ClickHouseProperties on creation of connection, or through Properties with keys socket_timeout and dataTransferTimeout. |
Thanks! It worked. I think it should be documented. |
Can you attach some java-code example for set this params? |
You can configure params like this: ClickHouseProperties properties = new ClickhouseProperties();
properties.setSocketTimeout(timeout);
new ClickHouseDataSource(url , properties); or Properties properties = new Properties();
properties.put("socket_timeout", timeout);
new ClickHouseDataSource(url, properties); |
Hi! |
ms |
putting socket_timeout into properties doesn't work. |
@mayunlei you cannot set |
@den-crane Hi, is there any plan to support it in url? |
|
i find some code like these:
so if i use "jdbc:clickhouse://url:port/default?socket_timeout=300000",it can work..... |
it does work by use url like "jdbc:clickhouse://url:port/default?socket_timeout=300000" |
Hello,
I'm getting http read timeout in 30 seconds. I've checked Clickhouse settings related to timeout which are default as 300 seconds. (receive_timeout and send_timeout options. By default it's 300 sec.)
How can I increase http read timeout using clickhouse jdbc?
Thanks
The text was updated successfully, but these errors were encountered: