long2ice / asynch

An asyncio ClickHouse Python Driver with native (TCP) interface support.
https://github.com/long2ice/asynch
Apache License 2.0
186 stars 43 forks source link

[BUG] Stale connection in connection pool cannot properly recover itself #20

Closed stdc105 closed 1 month ago

stdc105 commented 3 years ago

Steps to reproduce the bug:

Environment:

Preliminary Analysis:

It seems that proto/connection::ping would read a varint from ClickHouse after sending the ping packet. However, in my case ClickHouse did not reply anything after a ping request, and thus buffer reader failed to extract anything, raising the error stating that the buffer is empty. I am unsure if the connection is actually closed, or in whatever weird state, since ClickHouse does not have proper specification on its native TCP protocol.

stankudrow commented 1 month ago

@stdc105 , hello. Could you close the issue or is it still actual?