ClickHouse / clickhouse-cpp

C++ client library for ClickHouse
Apache License 2.0
303 stars 159 forks source link

closed: No such file or directory #349

Closed druidfund closed 11 months ago

druidfund commented 11 months ago

I use Insert function to insert data to clickhouse in an event driving application, it is works fine for event is continues coming, but after a few minutes of no event comming and resume data processing, client throw exception like: closed: No such file or directory after that more exception throw out : fail to send 432 bytes of data: Broken pipe is there any suggest to solve this issue?

Enmk commented 11 months ago

Hi @druidfund ! Thanks for reporting an issue, could you please provide some details?

Maybe a minimal code sample that reproduces the problem? That would help to identify and fix the problem.

druidfund commented 11 months ago

Thanks for your answer. I find that it is caused by the TcpKeepAlive parameter in the ClientOptions. With this parameter was set in ClientOptions, everything works fine. closed