clickhouse-cpp icon indicating copy to clipboard operation
clickhouse-cpp copied to clipboard

when clickhouse-server died, clickhouse-cpp hang in recv while doing Insert

Open mmitkevich opened this issue 3 years ago • 3 comments

recv
clickhouse::SocketInput::DoRead(void*, unsigned long)
clickhouse::BufferedInput::DoRead(void*, unsigned long)
clickhouse::CodedInputStream::ReadVarint64(unsigned long*)
clickhouse::Client::Impl::ReceivePacket(unsigned long*)
clickhouse::Client::Impl::Insert(basic_string<char, char_traits<char>, allocator<char> > const&, clickhouse::Block const&)

Could it be related to SO_RCVTIMEO? Is there any way to adjust the read timeout in the API?

mmitkevich avatar Aug 12 '22 12:08 mmitkevich

fixed in https://github.com/ClickHouse/clickhouse-cpp/pull/205 ?

rr0gi avatar Nov 08 '22 17:11 rr0gi

Timeout is enable now@Enmk

1261385937 avatar Nov 26 '22 00:11 1261385937

@mmitkevich can you please confirm is it fixed?

Enmk avatar Feb 08 '23 11:02 Enmk