ClickHouse-Net
ClickHouse-Net copied to clipboard
Open() freeze in rare cases
Description
Generally works super, but a couple of times I got a sudden process total freeze (for more than 10 hours). Last time I investigated the situation via Remote Debugger.
The process execution was frozen deep inside the .Open() here:
Open() >...> ProtocolFormatter.Handshake() (line 97): ReadUInt > ... > ProtocolFormatter.ReadBytes() (line 478): int num = await _ioStream.ReadAsync(bytes, read, i - read, cToken);
UPD: It seems this happens when ClickHouse server is suddenly goes down. But the client stays frozen even after ClickHouse server restoration.