Skip to content

Commit 3e662da

Browse files
authored
Merge pull request #7351 from Enmk/http_keep_alive_timeout
Fixed issue of using HTTP timeout as TCP timeout value.
2 parents e595df0 + 94095fc commit 3e662da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbms/src/IO/ConnectionTimeouts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ struct ConnectionTimeouts
8989
const auto & settings = context.getSettingsRef();
9090
const auto & config = context.getConfigRef();
9191
Poco::Timespan http_keep_alive_timeout{config.getUInt("keep_alive_timeout", 10), 0};
92-
return ConnectionTimeouts(settings.http_connection_timeout, settings.http_send_timeout, settings.http_receive_timeout, http_keep_alive_timeout);
92+
return ConnectionTimeouts(settings.http_connection_timeout, settings.http_send_timeout, settings.http_receive_timeout, settings.tcp_keep_alive_timeout, http_keep_alive_timeout);
9393
}
9494
};
9595

0 commit comments

Comments
 (0)