-
Notifications
You must be signed in to change notification settings - Fork 103
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
fetch error after querying for while - network error: error reading a body from connection #193
Comments
Guessing this would involve having an async task in background keeping connection alive |
How can the connection be kept alive? Is this documented somewhere? I just have an async task that iterates the cursor. |
Didn't mean as workaround, but in consideration for what clickhouse-rs should be doing to get around this issue |
What do you mean? There is no heartbeat in the HTTP transport, only TCP KA, which is enabled by default (1min) in the crate and handled by OS, not the library or @FireMasterK, can you provide more details (a query, a row, etc)? I tried to reproduce it locally without success =( |
I'm probably mistaken then @FireMasterK are you using direct connection to clickhouse? ie no private link or ssh tunnel or http load balancer involved |
No, I'm using a docker network (on the same machine). I'm running clickhouse and my application with docker-compose. |
Describe the bug
Steps to reproduce
.fetch()
while let Some(row) = cursor.next().await? {}
network error: error reading a body from connection
, sometimes alsobroken pipe
Expected behaviour
I can query iteratively as many records as I want, without any issues.
Code example
Error log
Query log
Not sure how I get this?
Configuration
Environment
0.13.1
Ubuntu 24.04
Linux 6.8.0
ClickHouse server
24.11.1
N/A
CREATE TABLE
statements for tables involved: Not sure if needed for this.The text was updated successfully, but these errors were encountered: