Report progress from server-side to keep client connections alive.

This way we make sure that 'receive_timeout' on client-side is triggered only
when there is a real socket read timeout.
This commit is contained in:
Ivan Lezhankin 2018-11-06 14:38:21 +03:00
parent f0edecd755
commit d846c0a9a6

View File

@ -398,7 +398,7 @@ void TCPHandler::processOrdinaryQuery()
} }
else else
{ {
if (state.progress.rows && after_send_progress.elapsed() / 1000 >= query_context.getSettingsRef().interactive_delay) if (after_send_progress.elapsed() / 1000 >= query_context.getSettingsRef().interactive_delay)
{ {
/// Some time passed and there is a progress. /// Some time passed and there is a progress.
after_send_progress.restart(); after_send_progress.restart();