mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32: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());
|
in = new ReadBufferFromPocoSocket(socket());
|
||||||
out = new WriteBufferFromPocoSocket(socket());
|
out = new WriteBufferFromPocoSocket(socket());
|
||||||
|
|
||||||
|
if (in->eof())
|
||||||
|
{
|
||||||
|
LOG_WARNING(log, "Client has not sent any data.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
receiveHello();
|
receiveHello();
|
||||||
@ -60,6 +66,12 @@ void TCPHandler::runImpl()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (e.code() == ErrorCodes::ATTEMPT_TO_READ_AFTER_EOF)
|
||||||
|
{
|
||||||
|
LOG_WARNING(log, "Client has gone away.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
/// Пытаемся отправить информацию об ошибке клиенту.
|
/// Пытаемся отправить информацию об ошибке клиенту.
|
||||||
|
Loading…
Reference in New Issue
Block a user