[fix](es catalog)fix es http timeout (#25273)

This commit is contained in:
Guangdong Liu
2023-10-12 10:21:55 +08:00
committed by GitHub
parent c4916184f1
commit 2014e16cfb

View File

@ -124,6 +124,7 @@ Status ESScanReader::open() {
}
_network_client.set_basic_auth(_user_name, _passwd);
_network_client.set_content_type("application/json");
_network_client.set_timeout_ms(_http_timeout_ms);
if (_use_ssl_client) {
_network_client.use_untrusted_ssl();
}
@ -214,7 +215,7 @@ Status ESScanReader::close() {
_network_client.set_basic_auth(_user_name, _passwd);
_network_client.set_method(DELETE);
_network_client.set_content_type("application/json");
_network_client.set_timeout_ms(5 * 1000);
_network_client.set_timeout_ms(_http_timeout_ms);
if (_use_ssl_client) {
_network_client.use_untrusted_ssl();
}