mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
dbms: better [#METR-19593].
This commit is contained in:
parent
6c712c1e7f
commit
4b1ebc764e
@ -48,6 +48,12 @@ void TCPHandler::runImpl()
|
||||
in = new ReadBufferFromPocoSocket(socket());
|
||||
out = new WriteBufferFromPocoSocket(socket());
|
||||
|
||||
if (in->eof())
|
||||
{
|
||||
LOG_WARNING(log, "Client has not sent any data.");
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
receiveHello();
|
||||
@ -60,6 +66,12 @@ void TCPHandler::runImpl()
|
||||
return;
|
||||
}
|
||||
|
||||
if (e.code() == ErrorCodes::ATTEMPT_TO_READ_AFTER_EOF)
|
||||
{
|
||||
LOG_WARNING(log, "Client has gone away.");
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
/// Пытаемся отправить информацию об ошибке клиенту.
|
||||
|
Loading…
Reference in New Issue
Block a user