bump the client API response timeout 60 -> 300 (#7406)

This commit is contained in:
Mike Farrell
2025-06-06 16:02:42 -07:00
committed by GitHub
parent 5c51b27f29
commit 6460ed8ea8

View File

@ -508,8 +508,9 @@ impl EngineManager for EngineConnection {
.await?;
// Wait for the response.
let response_timeout = 300;
let current_time = std::time::Instant::now();
while current_time.elapsed().as_secs() < 60 {
while current_time.elapsed().as_secs() < response_timeout {
let guard = self.socket_health.read().await;
if *guard == SocketHealth::Inactive {
// Check if we have any pending errors.